org.jgroups.util
Class AckCollector
java.lang.Object
org.jgroups.util.AckCollector
public class AckCollector
- extends java.lang.Object
Collects acks from a number of nodes, waits for all acks. Can also be time bounded
- Author:
- Bela Ban
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
missing_acks
protected final java.util.List<Address> missing_acks
- List of members from whom we haven't received an ACK yet
all_acks_received
protected final Promise<java.lang.Boolean> all_acks_received
suspected_mbrs
protected final java.util.List<Address> suspected_mbrs
expected_acks
protected int expected_acks
AckCollector
public AckCollector()
AckCollector
public AckCollector(java.util.Collection<Address> members)
AckCollector
public AckCollector(Address... members)
reset
public void reset(java.util.Collection<Address> members)
destroy
public void destroy()
size
public int size()
expectedAcks
public int expectedAcks()
ack
public void ack(Address member)
suspect
public void suspect(Address member)
retainAll
public boolean retainAll(java.util.Collection<Address> members)
waitForAllAcks
public boolean waitForAllAcks()
waitForAllAcks
public boolean waitForAllAcks(long timeout)
throws TimeoutException
- Throws:
TimeoutException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
printMissing
public java.lang.String printMissing()
printSuspected
public java.lang.String printSuspected()
addAll
protected void addAll(Address... members)
addAll
protected void addAll(java.util.Collection<Address> members)
Copyright © 1998-2012 Bela Ban / Red Hat. All Rights Reserved.