public interface SagaRepository<T>
AssociationValue) or via their unique identifier.| Modifier and Type | Method and Description |
|---|---|
Saga<T> |
createInstance(String sagaIdentifier,
Supplier<T> factoryMethod)
Creates a new Saga instance.
|
Set<String> |
find(AssociationValue associationValue)
Find saga instances of the given
type that have been associated with the given
associationValue. |
Saga<T> |
load(String sagaIdentifier)
Loads a known Saga instance by its unique identifier.
|
Set<String> find(AssociationValue associationValue)
type that have been associated with the given
associationValue.
associationValue - The value that the returned Sagas must be associated withnull.Saga<T> load(String sagaIdentifier)
null in case a Saga doesn't
exists, as opposed to throwing an exception.sagaIdentifier - The unique identifier of the Saga to loadnull if no such saga existsSaga<T> createInstance(String sagaIdentifier, Supplier<T> factoryMethod)
factoryMethod.sagaIdentifier - the identifier to use for the new saga instancefactoryMethod - Used to create a new Saga delegateTCopyright © 2010–2018. All rights reserved.