Class MongoDbPersistingStateMachineInterceptor<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.mongodb.MongoDbPersistingStateMachineInterceptor<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 MongoDbPersistingStateMachineInterceptor<S,E,T>
extends AbstractPersistingStateMachineInterceptor<S,E,T>
implements StateMachineRuntimePersister<S,E,T>
MongoDb
implementation of a AbstractPersistingStateMachineInterceptor
.- Author:
- Janne Valkealahti
-
Constructor Summary
ConstructorDescriptionInstantiates a new mongodb persisting state machine interceptor.MongoDbPersistingStateMachineInterceptor
(MongoDbStateMachineRepository mongodbStateMachineRepository) Instantiates a new mongodb 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
-
MongoDbPersistingStateMachineInterceptor
public MongoDbPersistingStateMachineInterceptor(MongoDbStateMachineRepository mongodbStateMachineRepository) Instantiates a new mongodb persisting state machine interceptor.- Parameters:
mongodbStateMachineRepository
- the mongodb state machine repository
-
MongoDbPersistingStateMachineInterceptor
Instantiates a new mongodb 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.
-