| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jgroups.util.Rsp<T>
public class Rsp<T>
Class that represents a response from a communication
| Field Summary | |
|---|---|
| protected  java.lang.Throwable | exceptionIf there was an exception, this field will contain it | 
| protected  boolean | receivedFlag that represents whether the response was received | 
| protected  T | retvalThe value from the response | 
| protected  Address | senderThe sender of this response | 
| protected  boolean | suspectedFlag that represents whether the sender of the response was suspected | 
| protected  boolean | unreachableIf true, the sender (below) could not be reached, e.g. | 
| Constructor Summary | |
|---|---|
| Rsp(Address sender) | |
| Rsp(Address sender,
    T retval) | |
| Rsp(Address sender,
    java.lang.Throwable t) | |
| Method Summary | |
|---|---|
|  boolean | equals(java.lang.Object obj) | 
|  java.lang.Throwable | getException() | 
|  Address | getSender() | 
|  T | getValue() | 
|  boolean | hasException() | 
|  int | hashCode() | 
|  void | setException(java.lang.Throwable t) | 
|  void | setReceived() | 
|  boolean | setSuspected() | 
|  boolean | setUnreachable() | 
|  void | setValue(T val) | 
|  java.lang.String | toString() | 
|  boolean | wasReceived() | 
|  boolean | wasSuspected() | 
|  boolean | wasUnreachable() | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
protected boolean received
protected boolean suspected
protected boolean unreachable
protected final Address sender
protected T retval
protected java.lang.Throwable exception
| Constructor Detail | 
|---|
public Rsp(Address sender)
public Rsp(Address sender,
           T retval)
public Rsp(Address sender,
           java.lang.Throwable t)
| Method Detail | 
|---|
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic T getValue()
public void setValue(T val)
public boolean hasException()
public java.lang.Throwable getException()
public void setException(java.lang.Throwable t)
public Address getSender()
public boolean wasReceived()
public void setReceived()
public boolean wasSuspected()
public boolean setSuspected()
public boolean wasUnreachable()
public boolean setUnreachable()
public java.lang.String toString()
toString in class java.lang.Object| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||