T
- the Saga type under configurationpublic class SagaConfigurer<T> extends Object
Modifier | Constructor and Description |
---|---|
protected |
SagaConfigurer(Class<T> type)
Initializes a configurer for the given Saga Type.
|
Modifier and Type | Method and Description |
---|---|
SagaConfigurer<T> |
configureRepository(Function<Configuration,SagaRepository<T>> repositoryBuilder)
Configures a
SagaRepository for this Saga. |
SagaConfigurer<T> |
configureSagaManager(Function<Configuration,AbstractSagaManager<T>> managerBuilder)
Configures a Saga Manager for this Saga.
|
SagaConfigurer<T> |
configureSagaStore(Function<Configuration,SagaStore<? super T>> storeBuilder)
Configures a
SagaStore for this Saga. |
static <T> SagaConfigurer<T> |
forType(Class<T> sagaType)
Retrieve the
SagaConfigurer for given sagaType . |
SagaConfiguration<T> |
initialize(Configuration configuration)
Initializes Saga Configuration by using the main
Configuration . |
public static <T> SagaConfigurer<T> forType(Class<T> sagaType)
SagaConfigurer
for given sagaType
.T
- a generic specifying the Saga typesagaType
- the type of the SagaSagaConfigurer
to configure a Saga withpublic SagaConfigurer<T> configureSagaManager(Function<Configuration,AbstractSagaManager<T>> managerBuilder)
managerBuilder
- a Function
that builds a Saga ManagerSagaConfigurer
instance, for fluent interfacingpublic SagaConfigurer<T> configureRepository(Function<Configuration,SagaRepository<T>> repositoryBuilder)
SagaRepository
for this Saga.repositoryBuilder
- a Function
that builds SagaRepository
SagaConfigurer
instance, for fluent interfacingpublic SagaConfigurer<T> configureSagaStore(Function<Configuration,SagaStore<? super T>> storeBuilder)
SagaStore
for this Saga.storeBuilder
- a Function
that builds SagaStore
SagaConfigurer
instance, for fluent interfacingpublic SagaConfiguration<T> initialize(Configuration configuration)
Configuration
. After initialization, it is safe to call
accessor methods on this Configuration.configuration
- the main Configuration
used to provide components to this Saga ConfigurationCopyright © 2010–2024. All rights reserved.