public class StatefulFSMImpl<T> extends Object implements StatefulFSM<T>
Constructor and Description |
---|
StatefulFSMImpl(FSM<T> fsm,
Class<T> clazz,
Factory<T,?> factory) |
Modifier and Type | Method and Description |
---|---|
Object |
onEvent(String event,
Object... parms)
Pass an event to the FSM for a non-existent Stateful Entity.
|
Object |
onEvent(T stateful,
String event,
Object... parms)
Pass an event to the FSM for existing Stateful Entity
|
public Object onEvent(String event, Object... parms) throws TooBusyException
StatefulFSM
Factory
onEvent
in interface StatefulFSM<T>
event
- the Eventparms
- Optional parameters passed into the Action methodTooBusyException
- thrown if the FSM cannot process the eventpublic Object onEvent(T stateful, String event, Object... parms) throws TooBusyException
StatefulFSM
onEvent
in interface StatefulFSM<T>
stateful
- the Stateful Entityevent
- the Eventparms
- Optional parameters passed into the Action methodTooBusyException
- thrown if the FSM cannot process the eventCopyright © 2016. All rights reserved.