Modifier and Type | Field and Description |
---|---|
static RspList |
EMPTY_RSP_LIST |
Constructor and Description |
---|
RspList() |
RspList(Collection<Rsp> responses)
Adds a list of responses
|
Modifier and Type | Method and Description |
---|---|
void |
addNotReceived(Address sender) |
void |
addRsp(Address sender,
Object retval) |
void |
addSuspect(Address sender) |
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Object |
elementAt(int i)
Deprecated.
Use
entrySet() or values() instead |
Set<Map.Entry<Address,Rsp>> |
entrySet() |
Rsp |
get(Object key)
Returns the Rsp associated with address key
|
Object |
getFirst()
Returns the first value in the response set.
|
Vector<Object> |
getResults()
Returns the results from non-suspected members that are not null.
|
Vector<Address> |
getSuspectedMembers() |
Object |
getValue(Object key)
Returns the value associated with address key
|
boolean |
isEmpty() |
boolean |
isReceived(Address sender) |
boolean |
isSuspected(Address sender) |
Set<Address> |
keySet() |
int |
numReceived() |
int |
numSuspectedMembers() |
Rsp |
put(Address key,
Rsp value) |
void |
putAll(Map<? extends Address,? extends Rsp> m) |
Rsp |
remove(Object key) |
void |
reset()
Deprecated.
Use
clear() instead |
int |
size() |
String |
toString() |
Collection<Rsp> |
values() |
public static final RspList EMPTY_RSP_LIST
public RspList()
public RspList(Collection<Rsp> responses)
responses
- Collectionpublic boolean containsKey(Object key)
containsKey
in interface Map<Address,Rsp>
public boolean containsValue(Object value)
containsValue
in interface Map<Address,Rsp>
public Object getValue(Object key)
key
- public void reset()
clear()
insteadpublic void addNotReceived(Address sender)
public void addSuspect(Address sender)
public boolean isReceived(Address sender)
public int numSuspectedMembers()
public int numReceived()
public Object getFirst()
public Vector<Object> getResults()
public boolean isSuspected(Address sender)
public Object elementAt(int i) throws ArrayIndexOutOfBoundsException
i
- The indexArrayIndexOutOfBoundsException
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.