Package net.solarnetwork.ocpp.service
Interface ActionMessageProcessor<T,R>
- Type Parameters:
T- the message typeR- the result type
- All Known Implementing Classes:
BaseActionMessageProcessor
public interface ActionMessageProcessor<T,R>
API for processing
ActionMessage objects.- Version:
- 1.0
- Author:
- matt
-
Method Summary
Modifier and TypeMethodDescriptionSet<ocpp.domain.Action>Get the set of supported actions.booleanisMessageSupported(ActionMessage<?> message) Test if a specific message is supported by this processor.voidprocessActionMessage(ActionMessage<T> message, ActionMessageResultHandler<T, R> resultHandler) Process anActionMessageand provide the result to anActionMessageResultHandler.
-
Method Details
-
getSupportedActions
Set<ocpp.domain.Action> getSupportedActions()Get the set of supported actions.- Returns:
- the set of supported actions; never null
-
isMessageSupported
Test if a specific message is supported by this processor.- Parameters:
message- the message- Returns:
- true if
processActionMessage(ActionMessage, ActionMessageResultHandler)can handle the given message
-
processActionMessage
Process anActionMessageand provide the result to anActionMessageResultHandler.- Parameters:
message- the message to process, never nullresultHandler- the handler to provider the results to
-