Package org.nuxeo.ecm.core.uidgen
Class AbstractUIDSequencer
java.lang.Object
org.nuxeo.ecm.core.uidgen.AbstractUIDSequencer
- All Implemented Interfaces:
UIDSequencer
- Direct Known Subclasses:
ESUIDSequencer
,JPAUIDSequencerImpl
,KeyValueStoreUIDSequencer
,MongoDBUIDSequencer
- Since:
- 7.4
-
Field Summary
Fields inherited from interface org.nuxeo.ecm.core.uidgen.UIDSequencer
SEQUENCE_DOES_NOT_EXIST
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.ecm.core.uidgen.UIDSequencer
dispose, getCurrent, getKeys, getNextBlock, getNextLong, init
-
Field Details
-
name
-
-
Constructor Details
-
AbstractUIDSequencer
public AbstractUIDSequencer()
-
-
Method Details
-
getName
Description copied from interface:UIDSequencer
Gets the sequencer name.- Specified by:
getName
in interfaceUIDSequencer
-
setName
Description copied from interface:UIDSequencer
Sets the sequencer name.- Specified by:
setName
in interfaceUIDSequencer
-
initSequence
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 interfaceUIDSequencer
-