Interface ActionMessageResultHandler<T,R>

Type Parameters:
T - the message type
R - the result type
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ActionMessageResultHandler<T,R>
API for handling the result of an ActionMessage.

This API is not specific to any OCPP protocol version, so that services can be designed that support multiple versions.

Version:
1.0
Author:
matt
  • Method Details

    • handleActionMessageResult

      boolean handleActionMessageResult(ActionMessage<T> message, R result, Throwable error)
      Handle an ActionMessage result.
      Parameters:
      message - the source message the result is for
      result - the successful result, or null if no result is available
      error - the error result, or null if no error occurred; can implement ErrorHolder to pass specific details
      Returns:
      true if the result was handled, false otherwise