Class OSequenceOrdered
java.lang.Object
com.orientechnologies.orient.core.metadata.sequence.OSequence
com.orientechnologies.orient.core.metadata.sequence.OSequenceOrdered
- Since:
- 2/28/2015
A sequence with sequential guarantees. Even when a transaction is rolled back, there will still be no holes. However, as a result, it is slower.
- Author:
- Matan Shukry (matanshukry@gmail.com)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.orientechnologies.orient.core.metadata.sequence.OSequence
OSequence.CreateParams, OSequence.SEQUENCE_TYPE -
Field Summary
Fields inherited from class com.orientechnologies.orient.core.metadata.sequence.OSequence
CLASS_NAME, DEF_MAX_RETRY, DEFAULT_CACHE, DEFAULT_INCREMENT, DEFAULT_LIMIT_VALUE, DEFAULT_ORDER_TYPE, DEFAULT_RECYCLABLE_VALUE, DEFAULT_START, replicationProtocolVersion, tlDocument -
Constructor Summary
ConstructorsConstructorDescriptionOSequenceOrdered(ODocument iDocument) OSequenceOrdered(ODocument iDocument, OSequence.CreateParams params) -
Method Summary
Methods inherited from class com.orientechnologies.orient.core.metadata.sequence.OSequence
callRetry, current, getCrucialValueChanged, getDatabase, getDocument, getIncrement, getLimitValue, getMaxRetry, getName, getOrderType, getRecyclable, getSequenceName, getSequenceType, getStart, getValue, getValue, initClass, initSequence, isOnDistributted, next, onUpdate, reloadSequence, reset, save, save, setCrucialValueChanged, setIncrement, setLimitValue, setMaxRetry, setName, setOrderType, setRecyclable, setStart, setValue, shouldGoOverDistrtibute, updateParams
-
Constructor Details
-
OSequenceOrdered
public OSequenceOrdered() -
OSequenceOrdered
-
OSequenceOrdered
-
-
Method Details
-
nextWork
- Specified by:
nextWorkin classOSequence- Throws:
OSequenceLimitReachedException
-
currentWork
protected long currentWork()- Specified by:
currentWorkin classOSequence
-
resetWork
public long resetWork() -
getSequenceType
- Specified by:
getSequenceTypein classOSequence
-