Package com.sun.ejb.containers
Class EjbFutureTask<V>
- java.lang.Object
-
- java.util.concurrent.FutureTask<V>
-
- com.sun.ejb.containers.EjbFutureTask<V>
-
- All Implemented Interfaces:
Runnable
,Future<V>
,RunnableFuture<V>
public class EjbFutureTask<V> extends FutureTask<V>
- Author:
- Mahesh Kannan
-
-
Constructor Summary
Constructors Constructor Description EjbFutureTask(EjbAsyncTask<V> callable, EjbAsyncInvocationManager mgr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
cancel(boolean mayInterruptIfRunning)
V
get()
V
get(long timeout, TimeUnit unit)
boolean
isCancelled()
boolean
isDone()
String
toString()
-
Methods inherited from class java.util.concurrent.FutureTask
done, run, runAndReset, set, setException
-
-
-
-
Constructor Detail
-
EjbFutureTask
public EjbFutureTask(EjbAsyncTask<V> callable, EjbAsyncInvocationManager mgr)
-
-
Method Detail
-
cancel
public boolean cancel(boolean mayInterruptIfRunning)
-
get
public V get() throws InterruptedException, ExecutionException
- Specified by:
get
in interfaceFuture<V>
- Overrides:
get
in classFutureTask<V>
- Throws:
InterruptedException
ExecutionException
-
get
public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
- Specified by:
get
in interfaceFuture<V>
- Overrides:
get
in classFutureTask<V>
- Throws:
InterruptedException
ExecutionException
TimeoutException
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelled
in interfaceFuture<V>
- Overrides:
isCancelled
in classFutureTask<V>
-
isDone
public boolean isDone()
-
toString
public String toString()
- Overrides:
toString
in classFutureTask<V>
-
-