Package alpine.event.framework
Interface Event
- All Known Subinterfaces:
ChainableEvent,UnblockedEvent
- All Known Implementing Classes:
AbstractChainableEvent,LdapSyncEvent,SingletonCapableEvent
public interface Event
The Event interface simply defines a 'type'. All Events should implement this
interface.
- Since:
- 1.0.0
- Author:
- Steve Springett
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic voidThe dispath method provides convenience in not having to know (or care) about whatIEventServiceimplementation is used to process an event.static booleanThis 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 Details
-
dispatch
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
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
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
-