public class MongoSagaStore extends Object implements org.axonframework.modelling.saga.repository.SagaStore<Object>
| Modifier and Type | Class and Description |
|---|---|
static class |
MongoSagaStore.Builder
Builder class to instantiate a
MongoSagaStore. |
| Modifier | Constructor and Description |
|---|---|
protected |
MongoSagaStore(MongoSagaStore.Builder builder)
Instantiate a
MongoSagaStore based on the fields contained in the MongoSagaStore.Builder. |
| Modifier and Type | Method and Description |
|---|---|
static MongoSagaStore.Builder |
builder()
Instantiate a Builder to be able to create a
MongoSagaStore. |
void |
deleteSaga(Class<?> sagaType,
String sagaIdentifier,
Set<org.axonframework.modelling.saga.AssociationValue> associationValues) |
Set<String> |
findSagas(Class<?> sagaType,
org.axonframework.modelling.saga.AssociationValue associationValue) |
void |
insertSaga(Class<?> sagaType,
String sagaIdentifier,
Object saga,
Set<org.axonframework.modelling.saga.AssociationValue> associationValues) |
<S> org.axonframework.modelling.saga.repository.SagaStore.Entry<S> |
loadSaga(Class<S> sagaType,
String sagaIdentifier) |
void |
updateSaga(Class<?> sagaType,
String sagaIdentifier,
Object saga,
org.axonframework.modelling.saga.AssociationValues associationValues) |
protected MongoSagaStore(MongoSagaStore.Builder builder)
MongoSagaStore based on the fields contained in the MongoSagaStore.Builder.
Will assert that the MongoTemplate is not null, and will throw an AxonConfigurationException if it is null.
builder - the MongoSagaStore.Builder used to instantiate a MongoSagaStore instancepublic static MongoSagaStore.Builder builder()
MongoSagaStore.
The Serializer is defaulted to a XStreamSerializer. The MongoTemplate is a
hard requirement and as such should be provided.
MongoSagaStorepublic <S> org.axonframework.modelling.saga.repository.SagaStore.Entry<S> loadSaga(Class<S> sagaType, String sagaIdentifier)
loadSaga in interface org.axonframework.modelling.saga.repository.SagaStore<Object>public Set<String> findSagas(Class<?> sagaType, org.axonframework.modelling.saga.AssociationValue associationValue)
findSagas in interface org.axonframework.modelling.saga.repository.SagaStore<Object>public void deleteSaga(Class<?> sagaType, String sagaIdentifier, Set<org.axonframework.modelling.saga.AssociationValue> associationValues)
deleteSaga in interface org.axonframework.modelling.saga.repository.SagaStore<Object>public void updateSaga(Class<?> sagaType, String sagaIdentifier, Object saga, org.axonframework.modelling.saga.AssociationValues associationValues)
updateSaga in interface org.axonframework.modelling.saga.repository.SagaStore<Object>Copyright © 2010–2022. All rights reserved.