public interface MongoTemplate
Generic template for accessing Mongo for the axon events.
You can ask for the collection of domain events as well as the collection of snapshot events. 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 collections.
Implementations of this interface must provide the connection to Mongo.
| Modifier and Type | Method and Description |
|---|---|
com.mongodb.DB |
database()
Returns the database for the axon event store.
|
com.mongodb.DBCollection |
domainEventCollection()
Returns a reference to the collection containing the domain events.
|
com.mongodb.DBCollection |
snapshotEventCollection()
Returns a reference to the collection containing the snapshot events.
|
com.mongodb.DBCollection domainEventCollection()
com.mongodb.DBCollection snapshotEventCollection()
com.mongodb.DB database()
Copyright © 2012. All Rights Reserved.