Interface ActionHandler<T extends Action<R>,R>
-
- Type Parameters:
T- the type of theActionto handleR- the type of messages of theChannel
- All Known Implementing Classes:
CallActionHandler,ConsumerActionHandler,JumpActionHandler,ReturnActionHandler,SubscriptionActionHandler
public interface ActionHandler<T extends Action<R>,R>ActionHandlerare responsible to handle the execution of the finalActionof aChannel.Actionsserve only as representative container for the information necessary to execute them. Any logic regarding their execution is handled by theActionHandlers. When a message reaches the end of aChannel, theActionHandlerSetserves as a lookup object for anActionHandlermatching theChannel'sfinalAction.- See Also:
- EventMaid Documentation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidhandle(T action, ProcessingContext<R> processingContext)Handle the execution of the givenActionand message.
-
-
-
Method Detail
-
handle
void handle(T action, ProcessingContext<R> processingContext)
Handle the execution of the givenActionand message.- Parameters:
action- theActionthis handler was written forprocessingContext- the message
-
-