DefaultMongoTemplate
instead.@Deprecated public class DefaultMongoTemplate extends AbstractMongoTemplate implements MongoTemplate
Constructor and Description |
---|
DefaultMongoTemplate(com.mongodb.MongoClient mongo)
Deprecated.
Initialize a template for the given
mongoDb instance, using default database name ("axonframework")
and collection name ("sagas"). |
DefaultMongoTemplate(com.mongodb.MongoClient mongo,
String databaseName,
String sagasCollectionName)
Deprecated.
Creates a template connecting to given
mongo instance, and loads sagas in the collection with given
sagasCollectionName , in a database with given databaseName . |
Modifier and Type | Method and Description |
---|---|
com.mongodb.client.MongoCollection<org.bson.Document> |
eventCollection()
Deprecated.
Returns a reference to the collection containing the events.
|
com.mongodb.client.MongoCollection<org.bson.Document> |
sagaCollection()
Deprecated.
Returns a reference to the collection containing the saga instances.
|
com.mongodb.client.MongoCollection<org.bson.Document> |
snapshotCollection()
Deprecated.
Returns a reference to the collection containing the snapshot events.
|
com.mongodb.client.MongoCollection<org.bson.Document> |
trackingTokensCollection()
Deprecated.
Returns a reference to the collection containing the Tracking Tokens.
|
database
public DefaultMongoTemplate(com.mongodb.MongoClient mongo)
mongoDb
instance, using default database name ("axonframework")
and collection name ("sagas").mongo
- The Mongo instance providing access to the databasepublic DefaultMongoTemplate(com.mongodb.MongoClient mongo, String databaseName, String sagasCollectionName)
mongo
instance, and loads sagas in the collection with given
sagasCollectionName
, in a database with given databaseName
.mongo
- The Mongo instance configured to connect to the Mongo ServerdatabaseName
- The name of the database containing the datasagasCollectionName
- The collection containing the saga instancepublic com.mongodb.client.MongoCollection<org.bson.Document> trackingTokensCollection()
MongoTemplate
trackingTokensCollection
in interface MongoTemplate
public com.mongodb.client.MongoCollection<org.bson.Document> eventCollection()
MongoTemplate
eventCollection
in interface MongoTemplate
public com.mongodb.client.MongoCollection<org.bson.Document> snapshotCollection()
MongoTemplate
snapshotCollection
in interface MongoTemplate
public com.mongodb.client.MongoCollection<org.bson.Document> sagaCollection()
MongoTemplate
sagaCollection
in interface MongoTemplate
Copyright © 2010–2018. All rights reserved.