Package org.apache.cassandra.concurrent
Class TaskFactory.Standard
- java.lang.Object
-
- org.apache.cassandra.concurrent.TaskFactory.Standard
-
- All Implemented Interfaces:
TaskFactory
- Direct Known Subclasses:
TaskFactory.LocalAware
- Enclosing interface:
- TaskFactory
public static class TaskFactory.Standard extends java.lang.Object implements TaskFactory
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.cassandra.concurrent.TaskFactory
TaskFactory.LocalAware, TaskFactory.Standard
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedStandard()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T> RunnableFuture<T>newTask(java.lang.Runnable task)protected <T> RunnableFuture<T>newTask(java.util.concurrent.Callable<T> call)protected <T> RunnableFuture<T>newTask(WithResources withResources, java.lang.Runnable task)protected <T> RunnableFuture<T>newTask(WithResources withResources, java.util.concurrent.Callable<T> call)java.lang.RunnabletoExecute(java.lang.Runnable runnable)java.lang.RunnabletoExecute(WithResources withResources, java.lang.Runnable runnable)<T> RunnableFuture<T>toSubmit(java.lang.Runnable runnable)<T> RunnableFuture<T>toSubmit(java.lang.Runnable runnable, T result)<T> RunnableFuture<T>toSubmit(java.util.concurrent.Callable<T> callable)<T> RunnableFuture<T>toSubmit(WithResources withResources, java.lang.Runnable runnable)<T> RunnableFuture<T>toSubmit(WithResources withResources, java.lang.Runnable runnable, T result)<T> RunnableFuture<T>toSubmit(WithResources withResources, java.util.concurrent.Callable<T> callable)
-
-
-
Method Detail
-
toExecute
public java.lang.Runnable toExecute(java.lang.Runnable runnable)
- Specified by:
toExecutein interfaceTaskFactory
-
toSubmit
public <T> RunnableFuture<T> toSubmit(java.lang.Runnable runnable)
- Specified by:
toSubmitin interfaceTaskFactory
-
toSubmit
public <T> RunnableFuture<T> toSubmit(java.lang.Runnable runnable, T result)
- Specified by:
toSubmitin interfaceTaskFactory
-
toSubmit
public <T> RunnableFuture<T> toSubmit(java.util.concurrent.Callable<T> callable)
- Specified by:
toSubmitin interfaceTaskFactory
-
toExecute
public java.lang.Runnable toExecute(WithResources withResources, java.lang.Runnable runnable)
- Specified by:
toExecutein interfaceTaskFactory
-
toSubmit
public <T> RunnableFuture<T> toSubmit(WithResources withResources, java.lang.Runnable runnable)
- Specified by:
toSubmitin interfaceTaskFactory
-
toSubmit
public <T> RunnableFuture<T> toSubmit(WithResources withResources, java.lang.Runnable runnable, T result)
- Specified by:
toSubmitin interfaceTaskFactory
-
toSubmit
public <T> RunnableFuture<T> toSubmit(WithResources withResources, java.util.concurrent.Callable<T> callable)
- Specified by:
toSubmitin interfaceTaskFactory
-
newTask
protected <T> RunnableFuture<T> newTask(java.lang.Runnable task)
-
newTask
protected <T> RunnableFuture<T> newTask(java.util.concurrent.Callable<T> call)
-
newTask
protected <T> RunnableFuture<T> newTask(WithResources withResources, java.lang.Runnable task)
-
newTask
protected <T> RunnableFuture<T> newTask(WithResources withResources, java.util.concurrent.Callable<T> call)
-
-