Class OfferSequenceDatabaseService
- java.lang.Object
-
- fr.gouv.vitam.storage.offers.database.OfferSequenceDatabaseService
-
public class OfferSequenceDatabaseService extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BACKUP_LOG_SEQUENCE_ID
-
Constructor Summary
Constructors Constructor Description OfferSequenceDatabaseService(com.mongodb.client.MongoCollection<org.bson.Document> mongoCollection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getNextSequence(java.lang.String sequenceId)
long
getNextSequence(java.lang.String sequenceId, long inc)
-
-
-
Field Detail
-
BACKUP_LOG_SEQUENCE_ID
public static final java.lang.String BACKUP_LOG_SEQUENCE_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getNextSequence
public long getNextSequence(java.lang.String sequenceId) throws ContentAddressableStorageDatabaseException
-
getNextSequence
public long getNextSequence(java.lang.String sequenceId, long inc) throws ContentAddressableStorageDatabaseException
-
-