FSM.FSMBuilder<T>
Constructor and Description |
---|
FSM(String name,
Persister<T> persister,
int retryAttempts,
int retryInterval,
Class<T> clazz,
Class<? extends Annotation> idType,
org.springframework.context.ApplicationContext applicationContext) |
FSM(String name,
Persister<T> persister,
int retryAttempts,
int retryInterval,
Class<T> clazz,
Class<? extends Annotation> idType,
org.springframework.context.ApplicationContext applicationContext,
Finder<T,CT> finder) |
Modifier and Type | Method and Description |
---|---|
State<T> |
onEvent(T stateful,
String event,
Object... parms)
Process event.
|
protected State<T> |
transition(T stateful,
State<T> current,
String event,
Transition<T> t,
Object... args) |
executeAction, getCurrentState, getName, getPersister, getRetryAttempts, getRetryInterval, getTransition, setCurrent, setName, setPersister, setRetryAttempts, setRetryInterval
public FSM(String name, Persister<T> persister, int retryAttempts, int retryInterval, Class<T> clazz, Class<? extends Annotation> idType, org.springframework.context.ApplicationContext applicationContext, Finder<T,CT> finder)
public State<T> onEvent(T stateful, String event, Object... parms) throws TooBusyException
FSM
onEvent
in class FSM<T>
stateful
- The Stateful Entityevent
- The Eventparms
- Optional parameters to pass into the ActionTooBusyException
- Exception indicating that we've exceeded the number of RetryAttemptsprotected State<T> transition(T stateful, State<T> current, String event, Transition<T> t, Object... args) throws RetryException
transition
in class FSM<T>
RetryException
Copyright © 2016. All rights reserved.