
public class OSequenceCached extends OSequence
OSequence.CreateParams, OSequence.SEQUENCE_TYPECLASS_NAME, DEF_MAX_RETRY, DEFAULT_CACHE, DEFAULT_INCREMENT, DEFAULT_LIMIT_VALUE, DEFAULT_ORDER_TYPE, DEFAULT_RECYCLABLE_VALUE, DEFAULT_START, replicationProtocolVersion, tlDocument| Constructor and Description |
|---|
OSequenceCached() |
OSequenceCached(ODocument iDocument) |
OSequenceCached(ODocument iDocument,
OSequence.CreateParams params) |
| Modifier and Type | Method and Description |
|---|---|
protected long |
currentWork() |
int |
getCacheSize() |
OSequence.SEQUENCE_TYPE |
getSequenceType() |
long |
next() |
protected long |
nextWithNewCurrentValue(long currentValue,
boolean executeViaDistributed) |
long |
nextWork() |
long |
resetWork() |
void |
setCacheSize(int cacheSize) |
protected boolean |
shouldGoOverDistrtibute() |
callRetry, current, getCrucialValueChanged, getDatabase, getDocument, getIncrement, getLimitValue, getMaxRetry, getName, getOrderType, getRecyclable, getSequenceName, getSequenceType, getStart, getValue, getValue, initClass, initSequence, isOnDistributted, onUpdate, reloadSequence, reset, save, save, setCrucialValueChanged, setIncrement, setLimitValue, setMaxRetry, setName, setOrderType, setRecyclable, setStart, setValue, updateParamspublic OSequenceCached()
public OSequenceCached(ODocument iDocument)
public OSequenceCached(ODocument iDocument, OSequence.CreateParams params)
protected long nextWithNewCurrentValue(long currentValue,
boolean executeViaDistributed)
throws OSequenceLimitReachedException,
ODatabaseException
protected boolean shouldGoOverDistrtibute()
shouldGoOverDistrtibute in class OSequencepublic long next()
throws OSequenceLimitReachedException,
ODatabaseException
next in class OSequenceOSequenceLimitReachedExceptionODatabaseExceptionpublic long nextWork()
throws OSequenceLimitReachedException
nextWork in class OSequenceOSequenceLimitReachedExceptionprotected long currentWork()
currentWork in class OSequencepublic OSequence.SEQUENCE_TYPE getSequenceType()
getSequenceType in class OSequencepublic final int getCacheSize()
public final void setCacheSize(int cacheSize)
Copyright © 2009–2025 OrientDB. All rights reserved.