|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jgroups.util.Rsp<T>
public class Rsp<T>
Class that represents a response from a communication
Field Summary | |
---|---|
protected java.lang.Throwable |
exception
If there was an exception, this field will contain it |
protected boolean |
received
Flag that represents whether the response was received |
protected T |
retval
The value from the response |
protected Address |
sender
The sender of this response |
protected boolean |
suspected
Flag that represents whether the sender of the response was suspected |
protected boolean |
unreachable
If true, the sender (below) could not be reached, e.g. |
Constructor Summary | |
---|---|
Rsp(Address sender)
|
|
Rsp(Address sender,
T retval)
|
|
Rsp(Address sender,
java.lang.Throwable t)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.Throwable |
getException()
|
Address |
getSender()
|
T |
getValue()
|
boolean |
hasException()
|
int |
hashCode()
|
void |
setException(java.lang.Throwable t)
|
void |
setReceived()
|
boolean |
setSuspected()
|
boolean |
setUnreachable()
|
void |
setValue(T val)
|
java.lang.String |
toString()
|
boolean |
wasReceived()
|
boolean |
wasSuspected()
|
boolean |
wasUnreachable()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected boolean received
protected boolean suspected
protected boolean unreachable
protected final Address sender
protected T retval
protected java.lang.Throwable exception
Constructor Detail |
---|
public Rsp(Address sender)
public Rsp(Address sender, T retval)
public Rsp(Address sender, java.lang.Throwable t)
Method Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public T getValue()
public void setValue(T val)
public boolean hasException()
public java.lang.Throwable getException()
public void setException(java.lang.Throwable t)
public Address getSender()
public boolean wasReceived()
public void setReceived()
public boolean wasSuspected()
public boolean setSuspected()
public boolean wasUnreachable()
public boolean setUnreachable()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |