public class Rsp<T> extends Object
Modifier and Type | Field and Description |
---|---|
protected 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
|
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() |
void |
setException(Throwable t) |
void |
setReceived() |
boolean |
setSuspected() |
void |
setValue(T val) |
String |
toString() |
boolean |
wasReceived() |
boolean |
wasSuspected() |
protected boolean received
protected boolean suspected
protected final Address sender
protected T retval
protected Throwable exception
public Rsp(Address sender)
public T getValue()
public void setValue(T val)
public boolean hasException()
public Throwable getException()
public void setException(Throwable t)
public Address getSender()
public boolean wasReceived()
public void setReceived()
public boolean wasSuspected()
public boolean setSuspected()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.