public class Rsp<T>
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
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. if a site was down (only used by RELAY2)
|
构造器和说明 |
---|
Rsp(Address sender) |
Rsp(Address sender,
T retval) |
Rsp(Address sender,
java.lang.Throwable t) |
限定符和类型 | 方法和说明 |
---|---|
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() |
protected boolean received
protected boolean suspected
protected boolean unreachable
protected final Address sender
protected T retval
protected java.lang.Throwable exception
public boolean equals(java.lang.Object obj)
equals
在类中 java.lang.Object
public int hashCode()
hashCode
在类中 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
在类中 java.lang.Object