public class OSequenceOrdered extends OSequence
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.
OSequenceCached
OSequence.CreateParams, OSequence.SEQUENCE_TYPE
CLASS_NAME, DEF_MAX_RETRY, DEFAULT_CACHE, DEFAULT_INCREMENT, DEFAULT_LIMIT_VALUE, DEFAULT_ORDER_TYPE, DEFAULT_RECYCLABLE_VALUE, DEFAULT_START, replicationProtocolVersion, tlDocument
Constructor and Description |
---|
OSequenceOrdered() |
OSequenceOrdered(ODocument iDocument) |
OSequenceOrdered(ODocument iDocument,
OSequence.CreateParams params) |
Modifier and Type | Method and Description |
---|---|
protected long |
currentWork() |
OSequence.SEQUENCE_TYPE |
getSequenceType() |
long |
nextWork() |
long |
resetWork() |
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
public OSequenceOrdered()
public OSequenceOrdered(ODocument iDocument)
public OSequenceOrdered(ODocument iDocument, OSequence.CreateParams params)
public long nextWork() throws OSequenceLimitReachedException
nextWork
in class OSequence
OSequenceLimitReachedException
protected long currentWork()
currentWork
in class OSequence
public OSequence.SEQUENCE_TYPE getSequenceType()
getSequenceType
in class OSequence
Copyright © 2009–2020 OrientDB. All rights reserved.