Package org.jgroups.protocols
Class FD_SOCK2.BroadcastTask
java.lang.Object
org.jgroups.protocols.FD_SOCK2.BroadcastTask
- All Implemented Interfaces:
Runnable
- Enclosing class:
FD_SOCK2
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddSuspects(List<Address> mbrs) protected voidadjustSuspects(List<Address> mbrs) Removes all elements from suspects that are not in the new membershipprotected voidclear()protected voidremoveSuspect(Address suspect) voidrun()protected voidprotected voidstopTask()toString()
-
Field Details
-
suspects
-
future
-
-
Constructor Details
-
BroadcastTask
protected BroadcastTask()
-
-
Method Details
-
addSuspects
-
removeSuspect
-
adjustSuspects
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() -
toString
-