|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.rad.remote.event.CallBackEvent
public class CallBackEvent
The CallBackEvent
will be sent to an ICallBackListener
if an asynchronous method call returns a result.
ICallBackListener
Constructor Summary | |
---|---|
CallBackEvent(String pObjectName,
String pMethodName,
Object pObject,
Throwable pThrowable,
long pRequest,
long pResponse)
Creates a new instance of CallBackEvent . |
Method Summary | |
---|---|
String |
getMethodName()
Returns the method name of the remote call. |
Object |
getObject()
Gets the return value from a remote method call. |
String |
getObjectName()
Returns the object name of the remote method call. |
long |
getRequestTime()
Returns the time at which the remote method call was sent to the remote server. |
long |
getResponseTime()
Returns the time which the result, from the remote server, was received. |
boolean |
isError()
Determines if the result object is an exception, thrown by a call. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CallBackEvent(String pObjectName, String pMethodName, Object pObject, Throwable pThrowable, long pRequest, long pResponse)
CallBackEvent
.
pObjectName
- object name for the remote method callpMethodName
- method name for the remote callpObject
- result value from the server for the remote method call. If
the method call returned a result, the exception is undefined!pThrowable
- exception from the server for the remote method call. If
the method call returned an error, the result is undefined!pRequest
- request time of the remote method call, in millispResponse
- response time fo the result, in millisMethod Detail |
---|
public Object getObject() throws Throwable
Throwable
- if the remote method call throwed an errorpublic boolean isError()
true
if the result object is an exception thrown by a call.
false
if the result of a call is an exception or the result
had no errorspublic String getObjectName()
public String getMethodName()
public long getRequestTime()
public long getResponseTime()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |