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