Package org.jgroups.util
Class Rsp<T>
java.lang.Object
org.jgroups.util.Rsp<T>
Class that represents a response from a communication
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected byteprotected static final byteSet when the value is an exceptionprotected static final byteFlag that represents whether the response was receivedprotected static final byteFlag that represents whether the sender of the response was suspectedprotected static final byteIf true, the sender (below) could not be reached, e.g.protected ObjectThe value from the response (or the exception) -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
RECEIVED
protected static final byte RECEIVEDFlag that represents whether the response was received- See Also:
-
SUSPECTED
protected static final byte SUSPECTEDFlag that represents whether the sender of the response was suspected- See Also:
-
UNREACHABLE
protected static final byte UNREACHABLEIf true, the sender (below) could not be reached, e.g. if a site was down (only used by RELAY2)- See Also:
-
IS_EXCEPTION
protected static final byte IS_EXCEPTIONSet when the value is an exception- See Also:
-
flags
protected byte flags -
value
The value from the response (or the exception)
-
-
Constructor Details
-
Rsp
public Rsp() -
Rsp
-
Rsp
-
-
Method Details
-
readIn
-
getValue
-
setValue
-
hasException
public boolean hasException() -
getException
-
setException
-
wasReceived
public boolean wasReceived() -
setReceived
-
wasSuspected
public boolean wasSuspected() -
setSuspected
public boolean setSuspected() -
wasUnreachable
public boolean wasUnreachable() -
setUnreachable
public boolean setUnreachable() -
hashCode
public int hashCode() -
equals
-
toString
-