public class OSequenceCached extends OSequence
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 |
---|
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, updateParams
public 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 OSequence
public long next() throws OSequenceLimitReachedException, ODatabaseException
next
in class OSequence
OSequenceLimitReachedException
ODatabaseException
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
public final int getCacheSize()
public final void setCacheSize(int cacheSize)
Copyright © 2009–2020 OrientDB. All rights reserved.