org.axonframework.mongo3.eventstore
Interface MongoTemplate

All Known Implementing Classes:
DefaultMongoTemplate

public interface MongoTemplate

Interface describing a mechanism that provides access to the Database and Collections required by the MongoEventStore.

Since:
2.0 (in incubator since 0.7)
Author:
Jettro Coenradie

Method Summary
 com.mongodb.client.MongoCollection<org.bson.Document> domainEventCollection()
          Returns a reference to the collection containing the domain events.
 com.mongodb.client.MongoCollection<org.bson.Document> snapshotEventCollection()
          Returns a reference to the collection containing the snapshot events.
 

Method Detail

domainEventCollection

com.mongodb.client.MongoCollection<org.bson.Document> domainEventCollection()
Returns a reference to the collection containing the domain events.

Returns:
MongoCollection containing the domain events

snapshotEventCollection

com.mongodb.client.MongoCollection<org.bson.Document> snapshotEventCollection()
Returns a reference to the collection containing the snapshot events.

Returns:
MongoCollection containing the snapshot events


Copyright © 2010-2016. All Rights Reserved.