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
.- Author:
- Janne Valkealahti
-
Constructor Summary
ConstructorDescriptionInstantiates a new redis persisting state machine interceptor.RedisPersistingStateMachineInterceptor
(RedisStateMachineRepository redisStateMachineRepository) Instantiates a new redis persisting state machine interceptor. -
Method Summary
Modifier and TypeMethodDescriptionGets aStateMachineInterceptor
handling machine persistence.ReadStateMachineContext
from persistent store.void
write
(StateMachineContext<S, E> context, T contextObj) WriteStateMachineContext
into persistent store.Methods inherited from class org.springframework.statemachine.persist.AbstractPersistingStateMachineInterceptor
buildStateMachineContext, buildStateMachineContext, postStateChange, preStateChange, setExtendedStateVariablesFunction
Methods 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:StateMachineRuntimePersister
Gets aStateMachineInterceptor
handling machine persistence.- Specified by:
getInterceptor
in interfaceStateMachineRuntimePersister<S,
E, T> - Returns:
- the interceptor handling persistence
-
write
Description copied from class:AbstractPersistingStateMachineInterceptor
WriteStateMachineContext
into persistent store. -
read
Description copied from class:AbstractPersistingStateMachineInterceptor
ReadStateMachineContext
from persistent store.
-