|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmandala.jacob.remote.AbstractRemote
mandala.jacob.remote.gpf.AbstractRemoteProxy
mandala.jacob.remote.gpf.RemoteInvocationEventsWaiterProxy
Generic proxy for remote InvocationEventsWaiter
implementation.
RemoteInvocationEventsWaiter
,
AbstractRemoteProxy
,
ExceptionHandler
,
Serialized FormNested Class Summary |
Nested classes inherited from class mandala.jacob.remote.AbstractRemote |
AbstractRemote.ExceptionInfo |
Nested classes inherited from class mandala.jacob.remote.RemoteInvocationEventsWaiter |
RemoteInvocationEventsWaiter.RemoteInvocationEventsWaiterMethods |
Field Summary |
Fields inherited from class mandala.jacob.remote.gpf.AbstractRemoteProxy |
client, exporter |
Fields inherited from class mandala.jacob.remote.AbstractRemote |
defaultExceptionHandler, exceptionHandler, syslog |
Constructor Summary | |
RemoteInvocationEventsWaiterProxy(Client client,
Exporter exporter,
ExceptionHandler exceptionHandler)
|
Method Summary | |
ThreadOp |
waitForCalleeThread()
Wait for the thread which is running the method invocation (the "callee") to be set. |
ThreadOp |
waitForCalleeThread(long timeout)
Wait for the thread which is running the method invocation (the "callee") to be set for a specified amount of time. |
Object |
waitForResult()
Equivalent to waitForResult(Long.MAX_VALUE). |
Object |
waitForResult(long timeout)
Wait for the availability of the result of an asynchronous method invocation for a specified amount of time. |
void |
waitUntilCalleeAvailable()
Wait until the callee thread become available. |
boolean |
waitUntilCalleeAvailable(long timeout)
Wait until the callee thread become available for a specified amount of time. |
void |
waitUntilResultAvailable()
Wait until the result become available. |
boolean |
waitUntilResultAvailable(long timeout)
Wait until the result become available for a specified amount of time. |
Methods inherited from class mandala.jacob.remote.gpf.AbstractRemoteProxy |
toString |
Methods inherited from class mandala.jacob.remote.AbstractRemote |
getDefaultExceptionHandler, getExceptionHandler, getSyslog, handleException, setDefaultExceptionHandler, setExceptionHandler, setSyslog |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface mandala.jacob.remote.Remote |
getExceptionHandler, setExceptionHandler |
Constructor Detail |
public RemoteInvocationEventsWaiterProxy(Client client, Exporter exporter, ExceptionHandler exceptionHandler)
Method Detail |
public Object waitForResult() throws Throwable, InterruptedException
InvocationEventsWaiter
Equivalent to waitForResult(Long.MAX_VALUE). This method is
safe related.
waitForResult
in interface InvocationEventsWaiter
Throwable
- the exception thrown by the asynchronous method
invocation.
InterruptedException
- if the thread has been interruptedpublic Object waitForResult(long timeout) throws Throwable, InterruptedException, TimedOutException
InvocationEventsWaiter
Wait for the availability of the result of an asynchronous method invocation for a specified amount of time. This method is safe related.
If an exception occured during the call, it is thrown.
If the specified timeout
expires, a
TimedOutException
is thrown.
waitForResult
in interface InvocationEventsWaiter
Throwable
- The exception thrown by the asynchronous method
invocation.
InterruptedException
- if another thread has interrupted the
current thread. The interrupted status of the current thread is cleared
when this exception is thrown.
TimedOutException
- if the specified timeout
expires.public void waitUntilResultAvailable() throws InterruptedException
InvocationEventsWaiter
Wait until the result become available. This method is safe related.
waitUntilResultAvailable
in interface InvocationEventsWaiter
InterruptedException
public boolean waitUntilResultAvailable(long timeout) throws InterruptedException
InvocationEventsWaiter
Wait until the result become available for a specified amount of time. This method is safe related.
If the result is not available, wait timeout
before
returning.
waitUntilResultAvailable
in interface InvocationEventsWaiter
timeout
- the maximum time to wait in milliseconds.
InterruptedException
public void waitUntilCalleeAvailable() throws InterruptedException
InvocationEventsWaiter
Wait until the callee thread become available. This method is safe related.
waitUntilCalleeAvailable
in interface InvocationEventsWaiter
InterruptedException
public boolean waitUntilCalleeAvailable(long timeout) throws InterruptedException
InvocationEventsWaiter
Wait until the callee thread become available for a specified amount of time. This method is safe related.
If the callee is not available, wait timeout
before
returning.
waitUntilCalleeAvailable
in interface InvocationEventsWaiter
timeout
- the maximum time to wait in milliseconds (0 means wait
for ever).
InterruptedException
public ThreadOp waitForCalleeThread() throws InterruptedException
InvocationEventsWaiter
Wait for the thread which is running the method invocation (the "callee") to be set. This method is safe related.
waitForCalleeThread
in interface InvocationEventsWaiter
InterruptedException
- if another thread has interrupted the
current thread. The interrupted status of the current thread is cleared
when this exception is thrown.public ThreadOp waitForCalleeThread(long timeout) throws TimedOutException, InterruptedException
InvocationEventsWaiter
Wait for the thread which is running the method invocation (the "callee") to be set for a specified amount of time. This method is safe related.
If the callee has not yet been set, wait timeout
before
returning the result.
waitForCalleeThread
in interface InvocationEventsWaiter
timeout
- the maximum time to wait in milliseconds (0 means wait
for ever).
InterruptedException
- if another thread has interrupted the
current thread. The interrupted status of the current thread is cleared
when this exception is thrown.
TimedOutException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |