Package org.apache.cassandra.concurrent
Class TaskFactory.LocalAware
- java.lang.Object
-
- org.apache.cassandra.concurrent.TaskFactory.Standard
-
- org.apache.cassandra.concurrent.TaskFactory.LocalAware
-
- All Implemented Interfaces:
TaskFactory
- Enclosing interface:
- TaskFactory
public static class TaskFactory.LocalAware extends TaskFactory.Standard
-
-
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
LocalAware()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
Methods inherited from class org.apache.cassandra.concurrent.TaskFactory.Standard
newTask, newTask, newTask, newTask
-
-
-
-
Method Detail
-
toExecute
public java.lang.Runnable toExecute(java.lang.Runnable runnable)
- Specified by:
toExecute
in interfaceTaskFactory
- Overrides:
toExecute
in classTaskFactory.Standard
-
toSubmit
public <T> RunnableFuture<T> toSubmit(java.lang.Runnable runnable)
- Specified by:
toSubmit
in interfaceTaskFactory
- Overrides:
toSubmit
in classTaskFactory.Standard
-
toSubmit
public <T> RunnableFuture<T> toSubmit(java.lang.Runnable runnable, T result)
- Specified by:
toSubmit
in interfaceTaskFactory
- Overrides:
toSubmit
in classTaskFactory.Standard
-
toSubmit
public <T> RunnableFuture<T> toSubmit(java.util.concurrent.Callable<T> callable)
- Specified by:
toSubmit
in interfaceTaskFactory
- Overrides:
toSubmit
in classTaskFactory.Standard
-
toExecute
public java.lang.Runnable toExecute(WithResources withResources, java.lang.Runnable runnable)
- Specified by:
toExecute
in interfaceTaskFactory
- Overrides:
toExecute
in classTaskFactory.Standard
-
toSubmit
public <T> RunnableFuture<T> toSubmit(WithResources withResources, java.lang.Runnable runnable)
- Specified by:
toSubmit
in interfaceTaskFactory
- Overrides:
toSubmit
in classTaskFactory.Standard
-
toSubmit
public <T> RunnableFuture<T> toSubmit(WithResources withResources, java.lang.Runnable runnable, T result)
- Specified by:
toSubmit
in interfaceTaskFactory
- Overrides:
toSubmit
in classTaskFactory.Standard
-
toSubmit
public <T> RunnableFuture<T> toSubmit(WithResources withResources, java.util.concurrent.Callable<T> callable)
- Specified by:
toSubmit
in interfaceTaskFactory
- Overrides:
toSubmit
in classTaskFactory.Standard
-
-