public class EpochManager
extends java.lang.Object
| Constructor and Description |
|---|
EpochManager() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Long |
getLatestEpoch(com.mongodb.client.MongoCollection<org.bson.Document> collection)
Read-only operation that will return the latest epoch that is in use for
the given collection.
|
static org.bson.Document |
getNotEqualEpochQueryObject()
Return the starting point for a query object in a collection that
contains epochs.
|
static java.lang.Long |
nextEpoch(com.mongodb.client.MongoCollection<org.bson.Document> collection)
Returns the next epoch available and advances the counter.
|
public static java.lang.Long nextEpoch(com.mongodb.client.MongoCollection<org.bson.Document> collection)
collection - - the MongoCollection to the get next epoch forpublic static java.lang.Long getLatestEpoch(com.mongodb.client.MongoCollection<org.bson.Document> collection)
collection - - the MongoCollection to interrogatepublic static org.bson.Document getNotEqualEpochQueryObject()