Constructor and Description |
---|
RspList() |
RspList(Collection<Rsp<T>> responses)
Adds a list of responses
|
Modifier and Type | Method and Description |
---|---|
void |
addNotReceived(Address sender) |
void |
addRsp(Address sender,
T retval) |
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<Address,Rsp<T>>> |
entrySet() |
Rsp<T> |
get(Object key)
Returns the Rsp associated with address key
|
T |
getFirst()
Returns the first value in the response set.
|
List<T> |
getResults()
Returns the results from non-suspected members that are not null.
|
List<Address> |
getSuspectedMembers() |
T |
getValue(Object key)
Returns the value associated with address key
|
boolean |
isEmpty() |
boolean |
isReceived(Address sender) |
boolean |
isSuspected(Address sender) |
Iterator<Rsp<T>> |
iterator() |
Set<Address> |
keySet() |
int |
numReceived() |
int |
numSuspectedMembers() |
Rsp<T> |
put(Address key,
Rsp<T> value) |
void |
putAll(Map<? extends Address,? extends Rsp<T>> m) |
Rsp<T> |
remove(Object key) |
int |
size() |
String |
toString() |
Collection<Rsp<T>> |
values() |
public RspList()
public RspList(Collection<Rsp<T>> responses)
responses
- Collectionpublic boolean containsKey(Object key)
containsKey
in interface Map<Address,Rsp<T>>
public boolean containsValue(Object value)
containsValue
in interface Map<Address,Rsp<T>>
public T getValue(Object key)
key
- public void addNotReceived(Address sender)
public boolean isReceived(Address sender)
public int numSuspectedMembers()
public int numReceived()
public T getFirst()
public List<T> getResults()
public boolean isSuspected(Address sender)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.