Modifier and Type | Class and Description |
---|---|
protected static class |
Responses.PingDataIterator |
Modifier and Type | Field and Description |
---|---|
protected boolean |
break_on_coord_rsp |
protected CondVar |
cond |
protected boolean |
done |
protected int |
index |
protected java.util.concurrent.locks.Lock |
lock |
protected int |
num_expected_rsps |
protected PingData[] |
ping_rsps |
Constructor and Description |
---|
Responses(boolean break_on_coord_rsp) |
Responses(int num_expected_rsps,
boolean break_on_coord_rsp) |
Responses(int num_expected_rsps,
boolean break_on_coord_rsp,
int initial_capacity) |
Modifier and Type | Method and Description |
---|---|
protected Responses |
_done() |
protected void |
add(PingData data) |
void |
addResponse(PingData rsp,
boolean overwrite) |
Responses |
clear() |
boolean |
containsResponseFrom(Address mbr) |
Responses |
done() |
protected int |
find(PingData data) |
PingData |
findResponseFrom(Address mbr) |
java.util.List<PingData> |
get(long timeout)
Deprecated.
|
boolean |
isDone() |
boolean |
isEmpty() |
boolean |
isMet()
Return true if the condition is met and false otherwise
|
java.util.Iterator<PingData> |
iterator() |
protected static int |
newLength(int length) |
protected int[] |
numResponses() |
java.lang.String |
print() |
protected void |
resize(int new_size) |
int |
size() |
protected java.util.List<PingData> |
toList() |
java.lang.String |
toString() |
boolean |
waitFor(long timeout) |
protected PingData[] ping_rsps
protected int index
protected final java.util.concurrent.locks.Lock lock
protected final CondVar cond
protected final int num_expected_rsps
protected final boolean break_on_coord_rsp
protected boolean done
public Responses(boolean break_on_coord_rsp)
public Responses(int num_expected_rsps, boolean break_on_coord_rsp)
public Responses(int num_expected_rsps, boolean break_on_coord_rsp, int initial_capacity)
public boolean isMet()
Condition
public boolean isDone()
public Responses done()
public Responses clear()
public void addResponse(PingData rsp, boolean overwrite)
public boolean containsResponseFrom(Address mbr)
@Deprecated public java.util.List<PingData> get(long timeout) throws java.lang.InterruptedException
java.lang.InterruptedException
public boolean waitFor(long timeout)
public java.util.Iterator<PingData> iterator()
iterator
in interface java.lang.Iterable<PingData>
public int size()
public boolean isEmpty()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String print()
protected Responses _done()
protected int[] numResponses()
protected java.util.List<PingData> toList()
protected void resize(int new_size)
protected void add(PingData data)
protected int find(PingData data)
protected static int newLength(int length)
Copyright © 1998-2020 Red Hat. All Rights Reserved.