org.axonframework.saga.repository.mongo
Interface MongoTemplate

All Known Implementing Classes:
DefaultMongoTemplate

public interface MongoTemplate

Generic template for accessing Mongo for the axon sagas.

You can ask for the collection of domain events as well as 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 Mongo.

Since:
2.0
Author:
Jettro Coenradie

Method Summary
 com.mongodb.DBCollection sagaCollection()
          Returns a reference to the collection containing the saga instances.
 

Method Detail

sagaCollection

com.mongodb.DBCollection sagaCollection()
Returns a reference to the collection containing the saga instances.

Returns:
DBCollection containing the sagas


Copyright © 2010-2016. All Rights Reserved.