public class MongoSagaStore extends Object implements org.axonframework.eventhandling.saga.repository.SagaStore<Object>
| Constructor and Description |
|---|
MongoSagaStore(MongoTemplate mongoTemplate)
Initializes the Repository, using given
mongoTemplate to access the collections containing the
stored Saga instances. |
MongoSagaStore(MongoTemplate mongoTemplate,
org.axonframework.serialization.Serializer serializer)
Initializes the Repository, using given
mongoTemplate to access the collections containing the
stored Saga instances, serializing Saga instances using the given serializer. |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteSaga(Class<?> sagaType,
String sagaIdentifier,
Set<org.axonframework.eventhandling.saga.AssociationValue> associationValues) |
Set<String> |
findSagas(Class<?> sagaType,
org.axonframework.eventhandling.saga.AssociationValue associationValue) |
void |
insertSaga(Class<?> sagaType,
String sagaIdentifier,
Object saga,
org.axonframework.eventsourcing.eventstore.TrackingToken token,
Set<org.axonframework.eventhandling.saga.AssociationValue> associationValues) |
<S> org.axonframework.eventhandling.saga.repository.SagaStore.Entry<S> |
loadSaga(Class<S> sagaType,
String sagaIdentifier) |
void |
updateSaga(Class<?> sagaType,
String sagaIdentifier,
Object saga,
org.axonframework.eventsourcing.eventstore.TrackingToken token,
org.axonframework.eventhandling.saga.AssociationValues associationValues) |
public MongoSagaStore(MongoTemplate mongoTemplate)
mongoTemplate to access the collections containing the
stored Saga instances. Serialization is done using an XStream based serializer.mongoTemplate - the template providing access to the collectionspublic MongoSagaStore(MongoTemplate mongoTemplate, org.axonframework.serialization.Serializer serializer)
mongoTemplate to access the collections containing the
stored Saga instances, serializing Saga instances using the given serializer.mongoTemplate - the template providing access to the collectionsserializer - the serializer to serialize Saga instances withpublic <S> org.axonframework.eventhandling.saga.repository.SagaStore.Entry<S> loadSaga(Class<S> sagaType, String sagaIdentifier)
loadSaga in interface org.axonframework.eventhandling.saga.repository.SagaStore<Object>public Set<String> findSagas(Class<?> sagaType, org.axonframework.eventhandling.saga.AssociationValue associationValue)
findSagas in interface org.axonframework.eventhandling.saga.repository.SagaStore<Object>public void deleteSaga(Class<?> sagaType, String sagaIdentifier, Set<org.axonframework.eventhandling.saga.AssociationValue> associationValues)
deleteSaga in interface org.axonframework.eventhandling.saga.repository.SagaStore<Object>public void updateSaga(Class<?> sagaType, String sagaIdentifier, Object saga, org.axonframework.eventsourcing.eventstore.TrackingToken token, org.axonframework.eventhandling.saga.AssociationValues associationValues)
updateSaga in interface org.axonframework.eventhandling.saga.repository.SagaStore<Object>public void insertSaga(Class<?> sagaType, String sagaIdentifier, Object saga, org.axonframework.eventsourcing.eventstore.TrackingToken token, Set<org.axonframework.eventhandling.saga.AssociationValue> associationValues)
insertSaga in interface org.axonframework.eventhandling.saga.repository.SagaStore<Object>Copyright © 2010–2019. All rights reserved.