All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----JavaGroups.SlidingWindow
Remove
removes the first
message with a sequence number that is 1 higher than next_to_remove
(this variable
is then incremented), or it returns null if no message is present, or if no message's sequence
number is 1 higher.
next_to_remove
.
public SlidingWindow()SlidingWindow
public SlidingWindow(Object sender, SlidingWindow. RetransmitCommand command)
public void finalize()
public void Start()Stop
public void Stop()Add
public void Add(long seq_no, Message msg)
public Message Remove()
next_to_remove
.
Returns null otherwise
public void Reset()
public String toString()
public void run()
retransmit_command
with the
corresponding parameters (pt2pt, mcast or suspect). While iterating through msgs,
compute the min. wait time for all messages. At the end of an iteration, sleep for
that period of time. This gives the chance to add / remove messages (otherwise this
would be blocked).
public static void main(String args[])
All Packages Class Hierarchy This Package Previous Next Index