org.jgroups.stack

Class AckMcastReceiverWindow

public class AckMcastReceiverWindow extends 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 Loglog
Method Summary
booleanadd(Object sender, long seqno)
Records the sender/seqno pair in the message table
static voidmain(String[] args)
voidremove(Object sender, Vector seqnos)
voidremoveAll()
voidreset()
longsize()
voidsuspect(Object sender)
StringtoString()

Field Detail

log

protected static final Log log

Method Detail

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 ? 1998-2005 Bela Ban. All Rights Reserved.