コード例 #1
0
 protected S createNewInstance(Class<S> sagaClass, String sagaId, SagaConfig<S, E> sagaConfig) {
   SagaFactory<S> factory = sagaConfig.sagaFactory();
   return factory.createSaga(sagaId);
 }
コード例 #2
0
 protected String commitId(S saga, E event, SagaConfig<S, E> config) {
   SagaCommitIdGenerationStrategy<S, E> strat = config.sagaCommitIdGenerationStrategy();
   return strat.generateCommitId(saga, event);
 }