public class RspList<T> extends java.util.HashMap<Address,Rsp<T>> implements java.lang.Iterable<Rsp<T>>
Constructor and Description |
---|
RspList() |
RspList(int size) |
RspList(java.util.Map<Address,Rsp<T>> map) |
Modifier and Type | Method and Description |
---|---|
RspList<T> |
addRsp(Address sender,
T retval) |
T |
getFirst()
Returns the first value in the response set.
|
java.util.List<T> |
getResults()
Returns the results from non-suspected members that are not null.
|
java.util.List<Address> |
getSuspectedMembers() |
T |
getValue(java.lang.Object key)
Returns the value associated with address key
|
boolean |
isReceived(Address sender) |
boolean |
isSuspected(Address sender) |
java.util.Iterator<Rsp<T>> |
iterator() |
int |
numReceived() |
int |
numSuspectedMembers() |
java.lang.String |
toString() |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
public T getValue(java.lang.Object key)
key
- public boolean isReceived(Address sender)
public int numSuspectedMembers()
public int numReceived()
public T getFirst()
public java.util.List<T> getResults()
public java.util.List<Address> getSuspectedMembers()
public boolean isSuspected(Address sender)
public java.lang.String toString()
Copyright © 1998-2020 Red Hat. All Rights Reserved.