Class FD_SOCK2.BroadcastTask

java.lang.Object
org.jgroups.protocols.FD_SOCK2.BroadcastTask
All Implemented Interfaces:
Runnable
Enclosing class:
FD_SOCK2

protected class FD_SOCK2.BroadcastTask extends Object implements Runnable
Task which periodically broadcasts a list of suspected members. The goal is not to lose a SUSPECT message: since these are broadcast unreliably, they might get dropped. The BroadcastTask makes sure they are retransmitted until a view has been received which doesn't contain the suspected members any longer. Then the task terminates.
  • Field Details

    • suspects

      protected final Set<Address> suspects
    • future

      protected Future<?> future
  • Constructor Details

    • BroadcastTask

      protected BroadcastTask()
  • Method Details

    • addSuspects

      protected void addSuspects(List<Address> mbrs)
    • removeSuspect

      protected void removeSuspect(Address suspect)
    • adjustSuspects

      protected void adjustSuspects(List<Address> mbrs)
      Removes all elements from suspects that are not in the new membership
    • clear

      protected void clear()
    • startTask

      protected void startTask()
    • stopTask

      protected void stopTask()
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • toString

      public String toString()
      Overrides:
      toString in class Object