|
NetKernel APIs |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ten60.netkernel.layer1.nkf.impl.NKFAsyncRequestHandleImpl
public class NKFAsyncRequestHandleImpl
| Constructor Summary | |
|---|---|
NKFAsyncRequestHandleImpl(NKFRequestImpl aRequest,
NKFHelperImpl aHelper)
Creates a new instance of NKFSubRequestImpl |
|
| Method Summary | |
|---|---|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
intercept the setResponse methods and capture response local to this request listener |
IURRepresentation |
join()
Wait for an asynchronous subrequest to complete and return result - same effect as join(0) |
IURRepresentation |
join(long aTimeout)
Wait for an asynchronous subrequest to complete and return result |
void |
receiveAsyncException(URResult aResult)
A callback when execution of a previous request has failed |
void |
receiveAsyncResult(URResult aResult)
A callback when a result to a previous request is available |
void |
setListener(INKFAsyncRequestListener aListener)
Register a listener to be notified when the result of the request is available. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NKFAsyncRequestHandleImpl(NKFRequestImpl aRequest,
NKFHelperImpl aHelper)
| Method Detail |
|---|
public IURRepresentation join()
throws NKFException,
java.lang.InterruptedException
INKFAsyncRequestHandle
join in interface INKFAsyncRequestHandleNKFException - an exception issued in trying to issue the sub request.
java.lang.InterruptedException - thrown if waiting for the request to complete
is interrupted
public IURRepresentation join(long aTimeout)
throws NKFException,
java.lang.InterruptedException
INKFAsyncRequestHandle
join in interface INKFAsyncRequestHandleNKFException - an exception issued in trying to issue the sub request.
java.lang.InterruptedException - thrown if waiting for the request to complete
is interruptedpublic void setListener(INKFAsyncRequestListener aListener)
INKFAsyncRequestHandle
setListener in interface INKFAsyncRequestHandlepublic void receiveAsyncException(URResult aResult)
IURRequestor
receiveAsyncException in interface IURRequestoraResult - the exception result of a previous requestpublic void receiveAsyncResult(URResult aResult)
IURRequestor
receiveAsyncResult in interface IURRequestoraResult - the result of a previous request
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerjava.lang.Throwable
|
NetKernel APIs |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||