org.jgroups.util
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
|
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
|
int |
serializedSize() |
int |
size() |
String |
toString() |
void |
writeTo(DataOutput out)
Write the entire state of the current object (including superclasses) to outstream.
|
protected 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 writeTo(DataOutput out) throws Exception
Streamable
writeTo
in interface Streamable
Exception
public void readFrom(DataInput in) throws Exception
Streamable
readFrom
in interface Streamable
Exception
public int serializedSize()
public int size()
Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.