S
- the type of stateE
- the type of eventpublic class MongoDbRepositoryStateMachinePersist<S,E> extends RepositoryStateMachinePersist<MongoDbRepositoryStateMachine,S,E>
MongoDb
based implementation of a RepositoryStateMachinePersist
.Constructor and Description |
---|
MongoDbRepositoryStateMachinePersist(MongoDbStateMachineRepository mongodbStateMachineRepository)
Instantiates a new mongodb repository state machine persist.
|
MongoDbRepositoryStateMachinePersist(MongoDbStateMachineRepository mongodbStateMachineRepository,
StateMachineSerialisationService<S,E> serialisationService)
Instantiates a new mongodb repository state machine persist.
|
Modifier and Type | Method and Description |
---|---|
protected MongoDbRepositoryStateMachine |
build(StateMachineContext<S,E> context,
java.lang.Object contextObj,
byte[] serialisedContext)
Builds the generic
RepositoryStateMachine entity. |
protected StateMachineRepository<MongoDbRepositoryStateMachine> |
getRepository()
Gets the repository.
|
read, write
public MongoDbRepositoryStateMachinePersist(MongoDbStateMachineRepository mongodbStateMachineRepository)
mongodbStateMachineRepository
- the mongodb state machine repositorypublic MongoDbRepositoryStateMachinePersist(MongoDbStateMachineRepository mongodbStateMachineRepository, StateMachineSerialisationService<S,E> serialisationService)
mongodbStateMachineRepository
- the mongodb state machine repositoryserialisationService
- the serialisation serviceprotected StateMachineRepository<MongoDbRepositoryStateMachine> getRepository()
RepositoryStateMachinePersist
getRepository
in class RepositoryStateMachinePersist<MongoDbRepositoryStateMachine,S,E>
protected MongoDbRepositoryStateMachine build(StateMachineContext<S,E> context, java.lang.Object contextObj, byte[] serialisedContext)
RepositoryStateMachinePersist
RepositoryStateMachine
entity.build
in class RepositoryStateMachinePersist<MongoDbRepositoryStateMachine,S,E>
context
- the contextcontextObj
- the context objserialisedContext
- the serialised context