Package org.jgroups.util
Class RspList<T>
Contains responses from all members. Marks faulty members.
A RspList is a response list used in peer-to-peer protocols. This class is unsynchronized
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) booleangetFirst()Returns the first value in the response set.Returns the results from non-suspected members that are not null.Returns the value associated with address keybooleanisReceived(Address sender) booleanisSuspected(Address sender) iterator()intinttoString()Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCodeMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
RspList
public RspList() -
RspList
public RspList(int size) -
RspList
-
-
Method Details
-
getValue
Returns the value associated with address key- Parameters:
key-- Returns:
- Object value
-
addRsp
-
isReceived
-
numSuspectedMembers
public int numSuspectedMembers() -
numReceived
public int numReceived() -
getFirst
Returns the first value in the response set. This is random, but we try to return a non-null value first -
getResults
Returns the results from non-suspected members that are not null. -
getSuspectedMembers
-
isSuspected
-
toString
- Overrides:
toStringin classAbstractMap<Address,Rsp<T>>
-
contains
-
iterator
-