public static interface ExtensibleExecutorService.RunnableFutureFactory
| Modifier and Type | Method and Description |
|---|---|
<T> RunnableFuture<T> |
newTaskFor(Callable<T> c)
Returns a RunnableFuture for the given callable task.
|
<T> RunnableFuture<T> |
newTaskFor(Runnable r,
T value)
Returns a RunnableFuture for the given runnable and default
value.
|
<T> RunnableFuture<T> newTaskFor(Runnable r, T value)
r - the runnable task being wrappedvalue - the default value for the returned future<T> RunnableFuture<T> newTaskFor(Callable<T> c)
c - the callable task being wrappedCopyright © 2016–2018. All rights reserved.