org.springframework.statemachine.StateMachinePersist Java Examples
The following examples show how to use
org.springframework.statemachine.StateMachinePersist.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RedisPersistConfig.java From spring-statemachine-learning with Apache License 2.0 | 4 votes |
@Bean public StateMachinePersist<StateEnum, EventEnum, String> stateMachinePersist(RedisConnectionFactory connectionFactory) { RedisStateMachineContextRepository<StateEnum, EventEnum> repository = new RedisStateMachineContextRepository<StateEnum, EventEnum>(connectionFactory); return new RepositoryStateMachinePersist<StateEnum, EventEnum>(repository); }
Example #2
Source File: RedisPersistConfig.java From spring-statemachine-learning with Apache License 2.0 | 4 votes |
@Bean public StateMachinePersister<StateEnum, EventEnum, String> stateMachinePersister( StateMachinePersist<StateEnum, EventEnum, String> stateMachinePersist) { return new RedisStateMachinePersister<StateEnum, EventEnum>(stateMachinePersist); }
Example #3
Source File: StateMachineConfiguration.java From spring-cloud-skipper with Apache License 2.0 | 4 votes |
@Bean public StateMachineService<SkipperStates, SkipperEvents> stateMachineService( StateMachineFactory<SkipperStates, SkipperEvents> stateMachineFactory, StateMachinePersist<SkipperStates, SkipperEvents, String> stateMachinePersist) { return new DefaultStateMachineService<>(stateMachineFactory, stateMachinePersist); }