public abstract class AbstractSequenceValueProducer extends java.lang.Object implements SequenceValueProducer
Modifier | Constructor and Description |
---|---|
protected |
AbstractSequenceValueProducer() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
nextDecimalValue()
Returns the next decimal string value from the sequence, which remains
positive.
|
int |
nextIntValue()
Returns the next value from the sequence, which may wrap negative if all
positive values are exhausted.
|
java.lang.String |
nextNumericalValue(int radix,
int minLength)
Returns the next numerical string value from the sequence, which remains
positive.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
nextLongValue, returnReservedValues
public int nextIntValue() throws PersistException
SequenceValueProducer
Note: this method throws PersistException even for fetch failures since this method is called by insert operations. Insert operations can only throw a PersistException.
nextIntValue
in interface SequenceValueProducer
PersistException
- for fetch/persist failure or if sequence is
exhausted for int values.public java.lang.String nextDecimalValue() throws PersistException
SequenceValueProducer
Note: this method throws PersistException even for fetch failures since this method is called by insert operations. Insert operations can only throw a PersistException.
nextDecimalValue
in interface SequenceValueProducer
PersistException
- for fetch/persist failure or if sequence is exhausted.public java.lang.String nextNumericalValue(int radix, int minLength) throws PersistException
SequenceValueProducer
Note: this method throws PersistException even for fetch failures since this method is called by insert operations. Insert operations can only throw a PersistException.
nextNumericalValue
in interface SequenceValueProducer
radix
- use 2 for binary, 10 for decimal, 16 for hex. Max is 36.minLength
- ensure string is at least this long (padded with zeros if
necessary) to ensure proper string sortPersistException
- for fetch/persist failure or if sequence is exhausted.Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.