|
||||||||||
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(java.lang.Object pSource,
java.lang.String pObjectName,
java.lang.String pMethodName,
java.lang.Object pObject,
java.lang.Throwable pThrowable,
long pRequest,
long pResponse)
Creates a new instance of CallBackEvent . |
Method Summary | |
---|---|
java.lang.String |
getMethodName()
Returns the method name of the remote call. |
java.lang.Object |
getObject()
Gets the return value from a remote method call. |
java.lang.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. |
java.lang.Object |
getSource()
Gets the source object of this event. |
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(java.lang.Object pSource, java.lang.String pObjectName, java.lang.String pMethodName, java.lang.Object pObject, java.lang.Throwable pThrowable, long pRequest, long pResponse)
CallBackEvent
.
pSource
- the event sourcepObjectName
- 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 java.lang.Object getSource()
public java.lang.Object getObject() throws java.lang.Throwable
java.lang.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 java.lang.String getObjectName()
public java.lang.String getMethodName()
public long getRequestTime()
public long getResponseTime()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |