org.jgroups.stack

Class AckMcastReceiverWindow


public class AckMcastReceiverWindow
extends java.lang.Object

Keeps track of messages received from various senders. Acks each message received and checks whether it was already delivered. If yes, the message is discarded, otherwise it is delivered (passed up). The messages contain sequence numbers of old messages to be deleted, those are removed from the message table.

Author:
Bela Ban June 17 1999

Field Summary

protected static Log
log

Method Summary

boolean
add(Object sender, long seqno)
Records the sender/seqno pair in the message table
static void
main(String[] args)
void
remove(Object sender, Vector seqnos)
void
removeAll()
void
reset()
long
size()
void
suspect(Object sender)
String
toString()

Field Details

log

protected static Log log

Method Details

add

public boolean add(Object sender,
                   long seqno)
Records the sender/seqno pair in the message table

Parameters:
sender - The sender of the message
seqno - The sequence number associated with the message

Returns:
boolean If false, message is already present. Otherwise true.


main

public static void main(String[] args)


remove

public void remove(Object sender,
                   Vector seqnos)


removeAll

public void removeAll()


reset

public void reset()


size

public long size()


suspect

public void suspect(Object sender)


toString

public String toString()


Copyright B) 2001,2002 www.jgroups.com . All Rights Reserved.