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,
byte[] serialisedContext)
Builds the generic
RepositoryStateMachine entity. |
protected StateMachineRepository<MongoDbRepositoryStateMachine> |
getRepository()
Gets the repository.
|
read, writepublic 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()
RepositoryStateMachinePersistgetRepository in class RepositoryStateMachinePersist<MongoDbRepositoryStateMachine,S,E>protected MongoDbRepositoryStateMachine build(StateMachineContext<S,E> context, byte[] serialisedContext)
RepositoryStateMachinePersistRepositoryStateMachine entity.build in class RepositoryStateMachinePersist<MongoDbRepositoryStateMachine,S,E>context - the contextserialisedContext - the serialised context