org.jboss.aspects.asynch
Interface Future

All Known Subinterfaces:
RemotableFuture
All Known Implementing Classes:
FutureImpl, FutureImplJavaUtilConcurrent, FutureProxy

public interface Future

Comment


Method Summary
 java.lang.Object get()
          get result, throws Exception of method or InterruptedException
 java.lang.Object get(long milliseconds)
          get result, throws Exception of method or InterruptedException
 boolean isDone()
          is the method call done?
 void release()
          Release this future so that it can be garbaged collected remotely This is only useful for remote asynchronous.
 

Method Detail

get

java.lang.Object get()
                     throws java.lang.InterruptedException,
                            java.lang.reflect.InvocationTargetException
get result, throws Exception of method or InterruptedException

Throws:
java.lang.InterruptedException
java.lang.reflect.InvocationTargetException

get

java.lang.Object get(long milliseconds)
                     throws TimeoutException,
                            java.lang.InterruptedException,
                            java.lang.reflect.InvocationTargetException
get result, throws Exception of method or InterruptedException

Throws:
TimeoutException
java.lang.InterruptedException
java.lang.reflect.InvocationTargetException

isDone

boolean isDone()
is the method call done?


release

void release()
Release this future so that it can be garbaged collected remotely This is only useful for remote asynchronous. This is import to call especially for remote otherwise the remote future on the server will never get garbaged collected. AsynchProvider will call release if it is holding a Future already within its threadlocal when a new one is set on it.