Package alpine.event.framework
Interface Event
-
- All Known Subinterfaces:
ChainableEvent,UnblockedEvent
- All Known Implementing Classes:
AbstractChainableEvent,LdapSyncEvent,SingletonCapableEvent
public interface EventThe Event interface simply defines a 'type'. All Events should implement this interface.- Since:
- 1.0.0
- Author:
- Steve Springett
-
-
Method Summary
Static Methods Modifier and Type Method Description static voiddispatch(Event event)The dispath method provides convenience in not having to know (or care) about whatIEventServiceimplementation is used to process an event.static booleanisEventBeingProcessed(ChainableEvent event)This method provides convenience in not having to know (or care) about whatIEventServiceimplementation is used to process an event.static booleanisEventBeingProcessed(UUID chainIdentifier)This method provides convenience in not having to know (or care) about whatIEventServiceimplementation is used to process an event.
-
-
-
Method Detail
-
dispatch
static void dispatch(Event event)
The dispath method provides convenience in not having to know (or care) about whatIEventServiceimplementation is used to process an event. This method supports bothEventServiceandSingleThreadedEventServiceand may send an event to zero or more of the event services if they have a subscriber capable of processing the event.- Parameters:
event- the event to dispatch- Since:
- 1.2.0
-
isEventBeingProcessed
static boolean isEventBeingProcessed(ChainableEvent event)
This method provides convenience in not having to know (or care) about whatIEventServiceimplementation is used to process an event. This method supports bothEventServiceandSingleThreadedEventService.- Parameters:
event- the event to query- Returns:
- returns true if event is being processed, false if not
- Since:
- 1.4.0
-
isEventBeingProcessed
static boolean isEventBeingProcessed(UUID chainIdentifier)
This method provides convenience in not having to know (or care) about whatIEventServiceimplementation is used to process an event. This method supports bothEventServiceandSingleThreadedEventService.- Parameters:
chainIdentifier- the UUID of the event to query- Returns:
- returns true if event is being processed, false if not
- Since:
- 1.4.0
-
-