Class EventBusSubscriptionDefinition<E extends Event>
- java.lang.Object
-
- io.vertigo.core.node.definition.AbstractDefinition
-
- io.vertigo.commons.eventbus.definitions.EventBusSubscriptionDefinition<E>
-
- Type Parameters:
E
- type of event
- All Implemented Interfaces:
io.vertigo.core.node.definition.Definition
public final class EventBusSubscriptionDefinition<E extends Event> extends io.vertigo.core.node.definition.AbstractDefinition
This defintion defines a subscripter in the eventbus pattern. A endpoint is : - a type of event - a way to consume the event.- Author:
- pchretien
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<E>
getEventType()
Consumer<E>
getListener()
Return the consumer of the eventboolean
match(Event event)
Return if an event matches the event type of the actual subscription
-
-
-
Field Detail
-
PREFIX
public static final String PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
match
public boolean match(Event event)
Return if an event matches the event type of the actual subscription- Parameters:
event
- the type of event to test- Returns:
- true if it matches
-
-