|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SagaRepository
Interface towards the storage mechanism of Saga instances. Saga Repositories can find sagas either through the values
they have been associated with (see AssociationValue) or via their unique identifier.
| Method Summary | ||
|---|---|---|
void |
add(Saga saga)
Registers a newly created Saga with the Repository. |
|
void |
commit(Saga saga)
Commits the changes made to the Saga instance. |
|
|
find(Class<T> type,
Set<AssociationValue> associationValue)
Find saga instances of the given type that have been associated with the given
associationValue. |
|
|
load(Class<T> type,
String sagaIdentifier)
Loads a known Saga instance by its unique identifier. |
|
| Method Detail |
|---|
<T extends Saga> Set<T> find(Class<T> type,
Set<AssociationValue> associationValue)
type that have been associated with the given
associationValue.
Returned Sagas must be committed after processing.
T - The type of Saga to returntype - The type of Saga to returnassociationValue - The value that the returned Sagas must be associated with
null.
<T extends Saga> T load(Class<T> type,
String sagaIdentifier)
throws NoSuchSagaException
committed
after processing.
T - The expected type of Sagatype - The expected type of SagasagaIdentifier - The unique identifier of the Saga to load
NoSuchSagaException - if no Saga with given identifier can be foundvoid commit(Saga saga)
saga - The Saga instance to commitvoid add(Saga saga)
saga - The Saga instances to add.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||