public static interface ExtensibleExecutorService.RunnableFutureFactory
Modifier and Type | Method and Description |
---|---|
<T> java.util.concurrent.RunnableFuture<T> |
newTaskFor(java.util.concurrent.Callable<T> c)
Returns a RunnableFuture for the given callable task.
|
<T> java.util.concurrent.RunnableFuture<T> |
newTaskFor(Runnable r,
T value)
Returns a RunnableFuture for the given runnable and default
value.
|
<T> java.util.concurrent.RunnableFuture<T> newTaskFor(Runnable r, T value)
runnable
- the runnable task being wrappedvalue
- the default value for the returned future<T> java.util.concurrent.RunnableFuture<T> newTaskFor(java.util.concurrent.Callable<T> c)
callable
- the callable task being wrappedCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.