private static class TxnManagerImpl.FutureFactory extends Object implements ExtensibleExecutorService.RunnableFutureFactory
| Modifier | Constructor and Description |
|---|---|
private |
FutureFactory() |
| 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.
|
public <T> java.util.concurrent.RunnableFuture<T> newTaskFor(Runnable r, T value)
ExtensibleExecutorService.RunnableFutureFactorynewTaskFor in interface ExtensibleExecutorService.RunnableFutureFactoryvalue - the default value for the returned futurepublic <T> java.util.concurrent.RunnableFuture<T> newTaskFor(java.util.concurrent.Callable<T> c)
ExtensibleExecutorService.RunnableFutureFactorynewTaskFor in interface ExtensibleExecutorService.RunnableFutureFactoryCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.