public class Rsp<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected byte |
flags |
protected static byte |
IS_EXCEPTION
Set when the value is an exception
|
protected static byte |
RECEIVED
Flag that represents whether the response was received
|
protected Address |
sender
The sender of this response
|
protected static byte |
SUSPECTED
Flag that represents whether the sender of the response was suspected
|
protected static byte |
UNREACHABLE
If true, the sender (below) could not be reached, e.g.
|
protected java.lang.Object |
value
The value from the response (or the exception)
|
Constructor and Description |
---|
Rsp(Address sender) |
Rsp(Address sender,
T retval) |
Rsp(Address sender,
java.lang.Throwable t) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Throwable |
getException() |
Address |
getSender() |
T |
getValue() |
boolean |
hasException() |
int |
hashCode() |
void |
readIn(Rsp<T> other) |
Rsp<T> |
setException(java.lang.Throwable t) |
Rsp<T> |
setReceived() |
boolean |
setSuspected() |
boolean |
setUnreachable() |
Rsp<T> |
setValue(T val) |
java.lang.String |
toString() |
boolean |
wasReceived() |
boolean |
wasSuspected() |
boolean |
wasUnreachable() |
protected static final byte RECEIVED
protected static final byte SUSPECTED
protected static final byte UNREACHABLE
protected static final byte IS_EXCEPTION
protected final Address sender
protected byte flags
protected java.lang.Object value
public Rsp(Address sender)
public Rsp(Address sender, java.lang.Throwable t)
public T getValue()
public boolean hasException()
public java.lang.Throwable getException()
public Address getSender()
public boolean wasReceived()
public boolean wasSuspected()
public boolean setSuspected()
public boolean wasUnreachable()
public boolean setUnreachable()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 1998-2020 Red Hat. All Rights Reserved.