public class Rsp<T> extends 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 Object |
value
The value from the response (or the exception)
|
Constructor and Description |
---|
Rsp(Address sender) |
Rsp(Address sender,
T retval) |
Rsp(Address sender,
Throwable t) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Throwable |
getException() |
Address |
getSender() |
T |
getValue() |
boolean |
hasException() |
int |
hashCode() |
Rsp<T> |
setException(Throwable t) |
Rsp<T> |
setReceived() |
boolean |
setSuspected() |
boolean |
setUnreachable() |
Rsp<T> |
setValue(T val) |
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 Object value
public Rsp(Address sender)
public T getValue()
public boolean hasException()
public Throwable getException()
public Address getSender()
public boolean wasReceived()
public boolean wasSuspected()
public boolean setSuspected()
public boolean wasUnreachable()
public boolean setUnreachable()
Copyright © 2024 JBoss, a division of Red Hat. All rights reserved.