|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.saga.repository.inmemory.InMemorySagaRepository
public class InMemorySagaRepository
SagaRepository implementation that stores all Saga instances in memory.
| Constructor Summary | |
|---|---|
InMemorySagaRepository()
|
|
| 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> associationValues)
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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InMemorySagaRepository()
| Method Detail |
|---|
public <T extends Saga> Set<T> find(Class<T> type,
Set<AssociationValue> associationValues)
SagaRepositorytype that have been associated with the given
associationValue.
Returned Sagas must be committed after processing.
find in interface SagaRepositoryT - The type of Saga to returntype - The type of Saga to returnassociationValues - The value that the returned Sagas must be associated with
null.
public <T extends Saga> T load(Class<T> type,
String sagaIdentifier)
SagaRepositorycommitted
after processing.
load in interface SagaRepositoryT - The expected type of Sagatype - The expected type of SagasagaIdentifier - The unique identifier of the Saga to load
public void commit(Saga saga)
SagaRepository
commit in interface SagaRepositorysaga - The Saga instance to commitpublic void add(Saga saga)
SagaRepository
add in interface SagaRepositorysaga - The Saga instances to add.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||