org.jgroups.util
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
|
protected boolean |
unreachable
If true, the sender (below) could not be reached, e.g.
|
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() |
boolean |
setUnreachable() |
void |
setValue(T val) |
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 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()
public boolean wasUnreachable()
public boolean setUnreachable()
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.