Package org.infinispan.tasks.spi
Interface TaskEngine
-
- All Known Implementing Classes:
AdminOperationsHandler
,EmbeddedServerAdminOperationHandler
public interface TaskEngine
TaskEngine. An implementation of an engine for executing tasks. How the tasks are implemented is dependent on the engine itself.- Since:
- 8.1
- Author:
- Tristan Tarrant
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getName()
Returns the name of the engineList<Task>
getTasks()
Returns the list of tasks managed by this engineboolean
handles(String taskName)
Returns whether this task engine knows about a specified named task<T> CompletableFuture<T>
runTask(String taskName, TaskContext context, Executor executor)
Executes the named task on the specified cache, passing a map of named parameters.
-
-
-
Method Detail
-
getName
String getName()
Returns the name of the engine
-
runTask
<T> CompletableFuture<T> runTask(String taskName, TaskContext context, Executor executor)
Executes the named task on the specified cache, passing a map of named parameters.- Parameters:
taskName
- the name of the taskcontext
- a task contextexecutor
- the executor which the can be used by the task engine to run the task- Returns:
-
handles
boolean handles(String taskName)
Returns whether this task engine knows about a specified named task- Parameters:
taskName
-- Returns:
-
-