public interface SagaStoreCollections
Generic template for accessing Mongo for the axon sagas.
You can ask for the collection of sagas and association values. We use the mongo client mongo-java-driver. This is a wrapper around the standard mongo methods. For convenience the interface also gives access to the database that contains the axon saga collections.
Implementations of this interface must provide the connection to the Mongo database.
| Modifier and Type | Method and Description |
|---|---|
com.mongodb.DBCollection |
associationsCollection()
Returns a reference to the collection containing the association instances.
|
com.mongodb.DB |
database()
Returns the database for the axon sagas store.
|
com.mongodb.DBCollection |
sagaCollection()
Returns a reference to the collection containing the saga instances.
|
com.mongodb.DBCollection sagaCollection()
com.mongodb.DBCollection associationsCollection()
com.mongodb.DB database()
Copyright © 2012. All Rights Reserved.