Class CallActionHandler<T>
- java.lang.Object
-
- de.quantummaid.eventmaid.channel.action.CallActionHandler<T>
-
- Type Parameters:
T- the type of messages of theChannel
- All Implemented Interfaces:
ActionHandler<Call<T>,T>
public final class CallActionHandler<T> extends Object implements ActionHandler<Call<T>,T>
TheActionHandlerimplementation for theCallAction. It will always throw anCallNotAllowedAsFinalChannelAction, when called.
-
-
Constructor Summary
Constructors Constructor Description CallActionHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> CallActionHandler<T>callActionHandler()Factory method to create an newCallActionHandler.voidhandle(Call<T> action, ProcessingContext<T> processingContext)Will always throwCallNotAllowedAsFinalChannelAction.
-
-
-
Method Detail
-
callActionHandler
public static <T> CallActionHandler<T> callActionHandler()
Factory method to create an newCallActionHandler.- Type Parameters:
T- the type of messages of theChannel- Returns:
- a new
CallActionHandler
-
handle
public void handle(Call<T> action, ProcessingContext<T> processingContext)
Will always throwCallNotAllowedAsFinalChannelAction.- Specified by:
handlein interfaceActionHandler<Call<T>,T>- Parameters:
action- theCallActionthis handler was written forprocessingContext- the message- Throws:
CallNotAllowedAsFinalChannelAction- always
-
-