public class AckCollector
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Promise<java.lang.Boolean> |
all_acks_received |
protected int |
expected_acks |
protected java.util.List<Address> |
missing_acks
List of members from whom we haven't received an ACK yet
|
protected java.util.List<Address> |
suspected_mbrs |
Constructor and Description |
---|
AckCollector() |
AckCollector(Address... members) |
AckCollector(java.util.Collection<Address> members) |
Modifier and Type | Method and Description |
---|---|
void |
ack(Address member) |
protected void |
addAll(Address... members) |
protected void |
addAll(java.util.Collection<Address> members) |
void |
destroy() |
int |
expectedAcks() |
java.lang.String |
printMissing() |
java.lang.String |
printSuspected() |
void |
reset(java.util.Collection<Address> members) |
boolean |
retainAll(java.util.Collection<Address> members) |
int |
size() |
void |
suspect(Address member) |
java.lang.String |
toString() |
boolean |
waitForAllAcks() |
boolean |
waitForAllAcks(long timeout) |
protected final java.util.List<Address> missing_acks
protected final Promise<java.lang.Boolean> all_acks_received
protected final java.util.List<Address> suspected_mbrs
protected int expected_acks
public AckCollector()
public AckCollector(java.util.Collection<Address> members)
public AckCollector(Address... members)
public void reset(java.util.Collection<Address> members)
public void destroy()
public int size()
public int expectedAcks()
public void ack(Address member)
public void suspect(Address member)
public boolean retainAll(java.util.Collection<Address> members)
public boolean waitForAllAcks()
public boolean waitForAllAcks(long timeout) throws TimeoutException
TimeoutException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String printMissing()
public java.lang.String printSuspected()
protected void addAll(Address... members)
protected void addAll(java.util.Collection<Address> members)
Copyright © 1998-2020 Red Hat. All Rights Reserved.