Class SubscriptionActionHandler<T>
- java.lang.Object
-
- de.quantummaid.eventmaid.channel.action.SubscriptionActionHandler<T>
-
- Type Parameters:
T- the type of messages of theChannel
- All Implemented Interfaces:
ActionHandler<Subscription<T>,T>
public final class SubscriptionActionHandler<T> extends Object implements ActionHandler<Subscription<T>,T>
TheActionHandlerimplementation for theSubscriptionAction.- See Also:
- EventMaid Documentation
-
-
Constructor Summary
Constructors Constructor Description SubscriptionActionHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandle(Subscription<T> subscription, ProcessingContext<T> processingContext)Takes the message and delivers it to allSubscribers.static <T> SubscriptionActionHandler<T>subscriptionActionHandler()Factory method for a newSubscriptionActionHandler.
-
-
-
Method Detail
-
subscriptionActionHandler
public static <T> SubscriptionActionHandler<T> subscriptionActionHandler()
Factory method for a newSubscriptionActionHandler.- Type Parameters:
T- the type of messages of theChannel- Returns:
- a new
SubscriptionActionHandler
-
handle
public void handle(Subscription<T> subscription, ProcessingContext<T> processingContext)
Takes the message and delivers it to allSubscribers.- Specified by:
handlein interfaceActionHandler<Subscription<T>,T>- Parameters:
subscription- theSubscriptionActionprocessingContext- the message
-
-