public interface ServerTask<V> extends java.util.concurrent.Callable<V>, Task
Task.getName()
Before the execution, TaskContext is injected into the task to provide
EmbeddedCacheManager, Cache,
Marshaller and parameters.| Modifier and Type | Method and Description |
|---|---|
default java.lang.String |
getType()
Returns the type of task.
|
void |
setTaskContext(TaskContext taskContext)
Sets the task context
Store the value in your task implementation to be able to access caches and other resources in the task
|
getAllowedRole, getExecutionMode, getName, getParametersvoid setTaskContext(TaskContext taskContext)
taskContext - task execution context