|
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
Constructor Summary | |
NKFAsyncRequestHandleImpl(NKFRequestImpl aRequest,
NKFHelperImpl aHelper)
Creates a new instance of NKFSubRequestImpl |
Method Summary | |
Object |
invoke(Object proxy,
Method method,
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, InterruptedException
INKFAsyncRequestHandle
join
in interface INKFAsyncRequestHandle
NKFException
- an exception issued in trying to issue the sub request.
InterruptedException
- thrown if waiting for the request to complete
is interruptedpublic IURRepresentation join(long aTimeout) throws NKFException, InterruptedException
INKFAsyncRequestHandle
join
in interface INKFAsyncRequestHandle
NKFException
- an exception issued in trying to issue the sub request.
InterruptedException
- thrown if waiting for the request to complete
is interruptedpublic void setListener(INKFAsyncRequestListener aListener)
INKFAsyncRequestHandle
setListener
in interface INKFAsyncRequestHandle
aListener
- public void receiveAsyncException(URResult aResult)
IURRequestor
receiveAsyncException
in interface IURRequestor
aResult
- the exception result of a previous requestpublic void receiveAsyncResult(URResult aResult)
IURRequestor
receiveAsyncResult
in interface IURRequestor
aResult
- the result of a previous requestpublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
Throwable
|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |