public class SeqnoList extends Object implements Streamable, Iterable<Long>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
SeqnoList.Seqno |
protected class |
SeqnoList.SeqnoListIterator |
protected static class |
SeqnoList.SeqnoRange |
| Modifier and Type | Field and Description |
|---|---|
protected List<SeqnoList.Seqno> |
seqnos |
| Constructor and Description |
|---|
SeqnoList() |
SeqnoList(long seqno) |
SeqnoList(long from,
long to) |
| Modifier and Type | Method and Description |
|---|---|
SeqnoList |
add(long... seqnos) |
SeqnoList |
add(long seqno)
Adds a single seqno
|
SeqnoList |
add(long from,
long to)
Adds a seqno range
|
long |
getLast()
Returns the last seqno, this should also be the highest seqno in the list as we're supposed to add seqnos
in order
|
Iterator<Long> |
iterator() |
void |
readFrom(DataInput in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
void |
remove(long min_seqno)
Removes all seqnos <= seqno
|
void |
removeHigherThan(long max_seqno)
Removes all seqnos > seqno
|
int |
serializedSize() |
int |
size() |
String |
toString() |
void |
writeTo(DataOutput out)
Write the entire state of the current object (including superclasses) to outstream.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorprotected final List<SeqnoList.Seqno> seqnos
public SeqnoList()
public SeqnoList(long seqno)
public SeqnoList(long from,
long to)
public SeqnoList add(long seqno)
public SeqnoList add(long... seqnos)
public SeqnoList add(long from, long to)
public void remove(long min_seqno)
public void removeHigherThan(long max_seqno)
public long getLast()
public void writeTo(DataOutput out) throws Exception
StreamablewriteTo in interface StreamableExceptionpublic void readFrom(DataInput in) throws Exception
StreamablereadFrom in interface StreamableExceptionpublic int serializedSize()
public int size()
Copyright © 2016 JBoss, a division of Red Hat. All rights reserved.