Package net.solarnetwork.ocpp.service
Interface ActionMessageResultHandler<T,R>
- Type Parameters:
T- the message typeR- 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.
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 Summary
Modifier and TypeMethodDescriptionbooleanhandleActionMessageResult(ActionMessage<T> message, R result, Throwable error) Handle anActionMessageresult.
-
Method Details
-
handleActionMessageResult
Handle anActionMessageresult.- Parameters:
message- the source message the result is forresult- the successful result, or null if no result is availableerror- the error result, or null if no error occurred; can implementErrorHolderto pass specific details- Returns:
- true if the result was handled, false otherwise
-