public class MongoSagaRepository extends AbstractSagaRepository
| Constructor and Description |
|---|
MongoSagaRepository(SagaStoreCollections sagaStoreCollections) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Saga saga) |
void |
commit(Saga saga) |
protected void |
deleteSaga(Saga saga) |
<T extends Saga> |
find(Class<T> type,
Set<AssociationValue> associationValues) |
protected <T extends Saga> |
loadSaga(Class<T> type,
String sagaIdentifier) |
protected void |
removeAssociationValue(AssociationValue associationValue,
String sagaIdentifier) |
void |
setResourceInjector(ResourceInjector resourceInjector)
Sets the ResourceInjector to use to inject Saga instances with any (temporary) resources they might need.
|
void |
setSerializer(SagaSerializer serializer)
Provide the serializer to use if the default JavaSagaSerializer is not the best solution.
|
protected void |
storeAssociationValue(AssociationValue associationValue,
String sagaIdentifier) |
protected void |
storeSaga(Saga saga) |
protected void |
updateSaga(Saga saga) |
getAssociationValueMap, getSagaCache, load, purgeCachepublic MongoSagaRepository(SagaStoreCollections sagaStoreCollections)
public <T extends Saga> Set<T> find(Class<T> type, Set<AssociationValue> associationValues)
find in interface SagaRepositoryfind in class AbstractSagaRepositorypublic void add(Saga saga)
add in interface SagaRepositoryadd in class AbstractSagaRepositorypublic void commit(Saga saga)
commit in interface SagaRepositorycommit in class AbstractSagaRepositoryprotected void deleteSaga(Saga saga)
deleteSaga in class AbstractSagaRepositoryprotected <T extends Saga> T loadSaga(Class<T> type, String sagaIdentifier)
loadSaga in class AbstractSagaRepositoryprotected void updateSaga(Saga saga)
updateSaga in class AbstractSagaRepositoryprotected void storeSaga(Saga saga)
storeSaga in class AbstractSagaRepositoryprotected void storeAssociationValue(AssociationValue associationValue, String sagaIdentifier)
storeAssociationValue in class AbstractSagaRepositoryprotected void removeAssociationValue(AssociationValue associationValue, String sagaIdentifier)
removeAssociationValue in class AbstractSagaRepositorypublic void setSerializer(SagaSerializer serializer)
serializer - SagaSerializer to use for sag serialization.public void setResourceInjector(ResourceInjector resourceInjector)
resourceInjector - The resource injectorCopyright © 2012. All Rights Reserved.