Package fr.gouv.vitam.storage.offers.database

# Class OfferSequenceDatabaseService

java.lang.Object
fr.gouv.vitam.storage.offers.database.OfferSequenceDatabaseService

public class OfferSequenceDatabaseService extends Object

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final String`
  `BACKUP_LOG_SEQUENCE_ID`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `OfferSequenceDatabaseService(com.mongodb.client.MongoCollection<org.bson.Document> mongoCollection)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `long`
  `getNextSequence(String sequenceId)`
  `long`
  `getNextSequence(String sequenceId, long inc)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### BACKUP_LOG_SEQUENCE_ID

    public static final String BACKUP_LOG_SEQUENCE_ID
    See Also:
      - Constant Field Values

- ## Constructor Details

  - ### OfferSequenceDatabaseService

    public OfferSequenceDatabaseService(com.mongodb.client.MongoCollection<org.bson.Document> mongoCollection)

- ## Method Details

  - ### getNextSequence

    public long getNextSequence(String sequenceId) throws ContentAddressableStorageDatabaseException
    Throws:
      `ContentAddressableStorageDatabaseException`

  - ### getNextSequence

    public long getNextSequence(String sequenceId, long inc) throws ContentAddressableStorageDatabaseException
    Throws:
      `ContentAddressableStorageDatabaseException`