|
jBPM distribution 6.0.0.Beta3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jbpm.process.core.timer.TimerServiceRegistry
public class TimerServiceRegistry
Simple TimerService registry used for single point registration of TimerService
instances used by sessions.
Registry is intended to be used at the application startup to register all required TimerServices
so it can start operate as soon as it is active even if the session are not yet active.
Constructor Summary | |
---|---|
TimerServiceRegistry()
|
Method Summary | |
---|---|
org.drools.core.time.TimerService |
get(String id)
Returns TimerService instance registered under given key |
static TimerServiceRegistry |
getInstance()
|
void |
registerTimerService(String id,
org.drools.core.time.TimerService timerService)
Registers timerServie under given id. |
org.drools.core.time.TimerService |
remove(String id)
Removes TimerService from the registry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimerServiceRegistry()
Method Detail |
---|
public static TimerServiceRegistry getInstance()
public void registerTimerService(String id, org.drools.core.time.TimerService timerService)
id
- key used to get hold of the timer service instancetimerService
- fully initialized TimerService instancepublic org.drools.core.time.TimerService get(String id)
id
- timer service identifier
public org.drools.core.time.TimerService remove(String id)
id
- timer service identifier
|
jBPM distribution 6.0.0.Beta3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |