public interface ServerTask<V> extends Callable<V>, Task
Task.getName()
Before the execution, TaskContext
is injected into the task to provide
EmbeddedCacheManager
, Cache
,
Marshaller
and parameters.
Author: Michal Szynkiewicz Modifier and Type | Method and Description |
---|---|
default 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, getParameters
void setTaskContext(TaskContext taskContext)
taskContext
- task execution contextCopyright © 2020 JBoss, a division of Red Hat. All rights reserved.