Class FactoryPersistStateMachineHandler<S,E>

All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle, StateMachineReactiveLifecycle

public class FactoryPersistStateMachineHandler<S,E> extends AbstractPersistStateMachineHandler<S,E>
FactoryPersistStateMachineHandler is a recipe can be used to handle a state change of an arbitrary entity in a persistent storage.
This implementation accepts StateMachineFactory or StateMachineBuilder.Builder to provide thread safe feature without sharing same state machine in concurrent environment. New state machine will be created when handling method is called.
Author:
Ng Zouyiu