|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sapia.ubik.mcast.Response
public class Response
Models a synchronous response to a remote event.
EventChannel.send(ServerAddress, String, Object),
EventChannel.send(String, Object),
Response,
Serialized Form| Field Summary | |
|---|---|
static int |
STATUS_OK
Corresponds to the OK status, signifying that the response was returned normally. |
static int |
STATUS_SUSPECT
Indicates that the remote node corresponding to this instance is probably down. |
| Method Summary | |
|---|---|
java.lang.Object |
getData()
Returns the data held by this instance. |
int |
getStatus()
Returns this instance's status. |
java.lang.Throwable |
getThrowable()
Returns the Throwable held within this response. |
boolean |
isError()
Returns true if this instance contains a Throwable. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int STATUS_OK
public static final int STATUS_SUSPECT
| Method Detail |
|---|
public boolean isError()
true if this instance contains a Throwable.
public java.lang.Throwable getThrowable()
Throwable held within this response.
ThrowableisError()public java.lang.Object getData()
Object, or null if this response
has no data.public int getStatus()
STATUS_OK,
STATUS_SUSPECTpublic 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 | |||||||||