Class RedisPersistingStateMachineInterceptor<S,E,T>
java.lang.Object
org.springframework.statemachine.support.StateMachineInterceptorAdapter<S,E>
org.springframework.statemachine.persist.AbstractPersistingStateMachineInterceptor<S,E,T>
org.springframework.statemachine.data.redis.RedisPersistingStateMachineInterceptor<S,E,T>
- Type Parameters:
S- the type of stateE- the type of eventT- the type of persister context object
- All Implemented Interfaces:
StateMachineRuntimePersister<S,,E, T> StateMachinePersist<S,,E, T> StateMachineInterceptor<S,E>
public class RedisPersistingStateMachineInterceptor<S,E,T>
extends AbstractPersistingStateMachineInterceptor<S,E,T>
implements StateMachineRuntimePersister<S,E,T>
JPA implementation of a AbstractPersistingStateMachineInterceptor.-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new redis persisting state machine interceptor.RedisPersistingStateMachineInterceptor(RedisStateMachineRepository redisStateMachineRepository) Instantiates a new redis persisting state machine interceptor. -
Method Summary
Modifier and TypeMethodDescriptionGets aStateMachineInterceptorhandling machine persistence.ReadStateMachineContextfrom persistent store.voidwrite(StateMachineContext<S, E> context, T contextObj) WriteStateMachineContextinto persistent store.Methods inherited from class org.springframework.statemachine.persist.AbstractPersistingStateMachineInterceptor
buildStateMachineContext, buildStateMachineContext, postStateChange, preStateChange, setExtendedStateVariablesFunctionMethods inherited from class org.springframework.statemachine.support.StateMachineInterceptorAdapter
postTransition, preEvent, preTransition, stateMachineError
-
Constructor Details
-
RedisPersistingStateMachineInterceptor
public RedisPersistingStateMachineInterceptor(RedisStateMachineRepository redisStateMachineRepository) Instantiates a new redis persisting state machine interceptor.- Parameters:
redisStateMachineRepository- the redis state machine repository
-
RedisPersistingStateMachineInterceptor
Instantiates a new redis persisting state machine interceptor.- Parameters:
persist- the persist
-
-
Method Details
-
getInterceptor
Description copied from interface:StateMachineRuntimePersisterGets aStateMachineInterceptorhandling machine persistence.- Specified by:
getInterceptorin interfaceStateMachineRuntimePersister<S,E, T> - Returns:
- the interceptor handling persistence
-
write
Description copied from class:AbstractPersistingStateMachineInterceptorWriteStateMachineContextinto persistent store. -
read
Description copied from class:AbstractPersistingStateMachineInterceptorReadStateMachineContextfrom persistent store.
-