Package alpine.event.framework
Class SingletonCapableEvent
java.lang.Object
alpine.event.framework.AbstractChainableEvent
alpine.event.framework.SingletonCapableEvent
- All Implemented Interfaces:
ChainableEvent,Event
This class makes it possible to specify event types which should only
be processed sequentially (one at a time). This works in conjunction
with the
AbstractChainableEvent.chainIdentifier. In order for a SingletonCapableEvent
to instruct singleton behavior, isSingleton should be 'true'
and a static chainIdentifier should be specified.- Since:
- 1.7.0
- Author:
- Steve Springett
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class alpine.event.framework.AbstractChainableEvent
getChainIdentifier, getEventIdentifier, onFailure, onFailure, onFailure, onSuccess, onSuccess, onSuccess, setChainIdentifier
-
Constructor Details
-
SingletonCapableEvent
public SingletonCapableEvent()
-
-
Method Details
-
isSingleton
public boolean isSingleton() -
setSingleton
public void setSingleton(boolean singleton)
-