T - a generic specifying the Saga type contained in this SagaRepository implementationpublic static class CachingSagaStore.Builder<T> extends Object
CachingSagaStore.
The delegateSagaStore of type SagaStore, the associationsCache and sagaCache
(both of type Cache) are hard requirements and as such should be provided.
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CachingSagaStore.Builder<T> |
associationsCache(Cache associationsCache)
Sets the
associationsCache of type Cache used to store Saga associations with. |
CachingSagaStore<T> |
build()
Initializes a
CachingSagaStore as specified through this Builder. |
CachingSagaStore.Builder<T> |
delegateSagaStore(SagaStore<T> delegateSagaStore)
Sets the
SagaStore instance providing access to (persisted) entries. |
CachingSagaStore.Builder<T> |
sagaCache(Cache sagaCache)
Sets the
sagaCache of type Cache used to store Sagas with. |
protected void |
validate()
Validates whether the fields contained in this Builder are set accordingly.
|
public CachingSagaStore.Builder<T> delegateSagaStore(SagaStore<T> delegateSagaStore)
SagaStore instance providing access to (persisted) entries.delegateSagaStore - the SagaStore instance providing access to (persisted) entriespublic CachingSagaStore.Builder<T> associationsCache(Cache associationsCache)
associationsCache of type Cache used to store Saga associations with.associationsCache - a Cache used to store Saga associations withpublic CachingSagaStore.Builder<T> sagaCache(Cache sagaCache)
sagaCache of type Cache used to store Sagas with.sagaCache - a Cache used to store Sagas withpublic CachingSagaStore<T> build()
CachingSagaStore as specified through this Builder.CachingSagaStore as specified through this Builderprotected void validate()
throws AxonConfigurationException
AxonConfigurationException - if one field is asserted to be incorrect according to the Builder's
specificationsCopyright © 2010–2023. All rights reserved.