Class AckMcastReceiverWindow

java.lang.Object
org.jgroups.stack.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 Details

    • log

      protected static final org.apache.commons.logging.Log log
  • Constructor Details

    • AckMcastReceiverWindow

      public AckMcastReceiverWindow()
  • 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.
    • remove

      public void remove(Object sender, Vector seqnos)
    • size

      public long size()
    • reset

      public void reset()
    • removeAll

      public void removeAll()
    • suspect

      public void suspect(Object sender)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • main

      public static void main(String[] args) throws UnknownHostException
      Throws:
      UnknownHostException