Class AbstractUIDSequencer

java.lang.Object
org.nuxeo.ecm.core.uidgen.AbstractUIDSequencer
All Implemented Interfaces:
UIDSequencer
Direct Known Subclasses:
ESUIDSequencer, JPAUIDSequencerImpl, KeyValueStoreUIDSequencer, MongoDBUIDSequencer

public abstract class AbstractUIDSequencer extends Object implements UIDSequencer
Since:
7.4
  • Field Details

    • name

      protected String name
  • Constructor Details

    • AbstractUIDSequencer

      public AbstractUIDSequencer()
  • Method Details

    • getName

      public String getName()
      Description copied from interface: UIDSequencer
      Gets the sequencer name.
      Specified by:
      getName in interface UIDSequencer
    • setName

      public void setName(String name)
      Description copied from interface: UIDSequencer
      Sets the sequencer name.
      Specified by:
      setName in interface UIDSequencer
    • initSequence

      public void initSequence(String key, long id)
      Description copied from interface: UIDSequencer
      Initializes the sequencer with the given key to at least the given long id.

      A sequence can only be incremented, so if its current id is greater than the given id the sequence won't be decremented to reach the given id.

      Specified by:
      initSequence in interface UIDSequencer