org.apache.camel.util.concurrent
Class RejectableFutureTask<V>
java.lang.Object
java.util.concurrent.FutureTask<V>
org.apache.camel.util.concurrent.RejectableFutureTask<V>
- All Implemented Interfaces:
- Runnable, Future<V>, RunnableFuture<V>, Rejectable
public class RejectableFutureTask<V>
- extends FutureTask<V>
- implements Rejectable
A Rejectable
FutureTask
used by RejectableThreadPoolExecutor
.
- See Also:
RejectableThreadPoolExecutor
Method Summary |
void |
reject()
The task was rejected. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RejectableFutureTask
public RejectableFutureTask(Callable<V> callable)
RejectableFutureTask
public RejectableFutureTask(Runnable runnable,
V result)
reject
public void reject()
- Description copied from interface:
Rejectable
- The task was rejected.
- Specified by:
reject
in interface Rejectable
Apache CAMEL