@InterfaceAudience.Private public abstract class SequentialNumber extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
SequentialNumber(long initialValue)
Create a new instance with the given initial value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object that) |
long |
getCurrentValue() |
int |
hashCode() |
long |
nextValue()
Increment and then return the next value.
|
void |
setCurrentValue(long value)
Set current value.
|
void |
skipTo(long newValue)
Skip to the new value.
|
protected SequentialNumber(long initialValue)
public long getCurrentValue()
public void setCurrentValue(long value)
public long nextValue()
public void skipTo(long newValue)
throws IllegalStateException
IllegalStateExceptionCopyright © 2013 Apache Software Foundation. All rights reserved.