Package org.infinispan.tasks
Interface Task
-
- All Known Subinterfaces:
ServerTask<V>
public interface Task
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Optional<String>
getAllowedRole()
An optional role, for which the task is accessible.default TaskExecutionMode
getExecutionMode()
Provides info whether the task execution should be local - on one node or distributed - on all nodes.String
getName()
Provides a name for the task.default Set<String>
getParameters()
The named parameters accepted by this taskString
getType()
Returns the type of task.
-
-
-
Method Detail
-
getName
String getName()
Provides a name for the task. This is the name by which the task will be executed. Make sure the name is unique for task.- Returns:
- name of the server task
-
getType
String getType()
Returns the type of task. This is dependent on the specific implementation.
-
getExecutionMode
default TaskExecutionMode getExecutionMode()
Provides info whether the task execution should be local - on one node or distributed - on all nodes. ONE_NODE execution is the default.- Returns:
TaskExecutionMode.ONE_NODE
for single node execution,TaskExecutionMode.ALL_NODES
for distributed execution,
-
getParameters
default Set<String> getParameters()
The named parameters accepted by this task- Returns:
- a java.util.Set of parameter names
-
-