Save This Page
Home » activemq-parent-5.3.1-source-release » org.apache.kahadb.util » [javadoc | source]
public class: SequenceSet [javadoc | source]
Keeps track of a added long values. Collapses ranges of numbers using a Sequence representation. Use to keep track of received message ids to find out if a message is duplicate or if there are any missing messages.
Nested Class Summary:
public static class  SequenceSet.Marshaller   
Fields inherited from org.apache.kahadb.util.LinkedNodeList:
head,  size
Method from org.apache.kahadb.util.SequenceSet Summary:
add,   add,   contains,   getMissing,   getReceived,   removeFirst,   removeFirstSequence,   removeLastSequence
Methods from org.apache.kahadb.util.LinkedNodeList:
addFirst,   addFirst,   addLast,   addLast,   clear,   getHead,   getTail,   isEmpty,   reparent,   rotate,   rotateTo,   size,   toArrayList,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.kahadb.util.SequenceSet Detail:
 public  void add(Sequence value) 
 public boolean add(long value) 
 public boolean contains(int first,
    int last) 
 public List<Sequence> getMissing(long first,
    long last) 
 public List<Sequence> getReceived() 
 public long removeFirst() 
    Removes and returns the first element from this list.
 public Sequence removeFirstSequence(long count) 
    Removes and returns the first sequence that is count range large.
 public Sequence removeLastSequence()