Package org.apache.cassandra.concurrent
Interface TaskFactory
- All Known Implementing Classes:
TaskFactory.LocalAware,TaskFactory.Standard
public interface TaskFactory
A simple mechanism to impose our desired semantics on the execution of a task without requiring a specialised
executor service. We wrap tasks in a suitable
FutureTask or encapsulating Runnable.
The encapsulations handle any exceptions in our standard way, as well as ensuring ExecutorLocals are
propagated in the case of localAware()
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptionstatic TaskFactorystatic TaskFactorystandard()toExecute(WithResources withResources, Runnable runnable) <T> RunnableFuture<T><T> RunnableFuture<T><T> RunnableFuture<T><T> RunnableFuture<T>toSubmit(WithResources withResources, Runnable runnable) <T> RunnableFuture<T>toSubmit(WithResources withResources, Runnable runnable, T result) <T> RunnableFuture<T>toSubmit(WithResources withResources, Callable<T> callable)
-
Method Details
-
toExecute
-
toSubmit
-
toSubmit
-
toSubmit
-
toExecute
-
toSubmit
-
toSubmit
-
toSubmit
-
standard
-
localAware
-