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 protected
Standard()
-
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.Runnable
toExecute(java.lang.Runnable runnable)
java.lang.Runnable
toExecute(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:
toExecute
in interfaceTaskFactory
-
toSubmit
public <T> RunnableFuture<T> toSubmit(java.lang.Runnable runnable)
- Specified by:
toSubmit
in interfaceTaskFactory
-
toSubmit
public <T> RunnableFuture<T> toSubmit(java.lang.Runnable runnable, T result)
- Specified by:
toSubmit
in interfaceTaskFactory
-
toSubmit
public <T> RunnableFuture<T> toSubmit(java.util.concurrent.Callable<T> callable)
- Specified by:
toSubmit
in interfaceTaskFactory
-
toExecute
public java.lang.Runnable toExecute(WithResources withResources, java.lang.Runnable runnable)
- Specified by:
toExecute
in interfaceTaskFactory
-
toSubmit
public <T> RunnableFuture<T> toSubmit(WithResources withResources, java.lang.Runnable runnable)
- Specified by:
toSubmit
in interfaceTaskFactory
-
toSubmit
public <T> RunnableFuture<T> toSubmit(WithResources withResources, java.lang.Runnable runnable, T result)
- Specified by:
toSubmit
in interfaceTaskFactory
-
toSubmit
public <T> RunnableFuture<T> toSubmit(WithResources withResources, java.util.concurrent.Callable<T> callable)
- Specified by:
toSubmit
in 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)
-
-