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
ConstructorsConstructorDescriptionInstantiates a new mongodb persisting state machine interceptor.MongoDbPersistingStateMachineInterceptor(MongoDbStateMachineRepository mongodbStateMachineRepository) Instantiates a new mongodb 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
-
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: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.
-