public interface MongoConnector
extends java.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Quartz-mongodb will call this method when shutting down.
|
com.mongodb.client.MongoCollection<org.bson.Document> |
getCollection(java.lang.String collectionName)
Quartz-mongodb will call this method to get the instance of
MongoCollection for internal uses. |
com.mongodb.client.MongoCollection<org.bson.Document> getCollection(java.lang.String collectionName)
MongoCollection for internal uses.
The collection is expected to be fully configured with correct WriteConcern.collectionName - collection name.MongoCollection.void close()
MongoClient here.close in interface java.lang.AutoCloseableclose in interface java.io.Closeable