public class SequenceMap
extends java.lang.Object
| Constructor and Description |
|---|
SequenceMap() |
| Modifier and Type | Method and Description |
|---|---|
long |
addValue(java.lang.String value)
Adds a value to the map, assigning it a sequence number and returning it.
|
int |
count() |
long |
getCheckpointedSequence()
Returns the maximum consecutively-removed sequence number.
|
java.lang.String |
getCheckpointedValue()
Returns the value associated with the checkpointedSequence.
|
boolean |
isEmpty() |
void |
removeSequence(long sequence)
Removes a sequence and its associated value.
|
public long addValue(java.lang.String value)
public void removeSequence(long sequence)
public boolean isEmpty()
public int count()
public long getCheckpointedSequence()
public java.lang.String getCheckpointedValue()