Uses of Class
org.infinispan.tasks.TaskContext
-
Packages that use TaskContext Package Description org.infinispan.tasks Server tasks API. -
-
Uses of TaskContext in org.infinispan.tasks
Methods in org.infinispan.tasks that return TaskContext Modifier and Type Method Description TaskContextTaskContext. addOptionalParameter(String name, Object value)Adds a named parameter to the task context only if it is non-nullTaskContextTaskContext. addParameter(String name, Object value)Adds a named parameter to the task contextTaskContextTaskContext. cache(Cache<?,?> cache)The cache against which this task will be executed.TaskContextTaskContext. cacheManager(EmbeddedCacheManager cacheManager)The cache manager with which this task should be executedTaskContextTaskContext. logEvent(boolean logEvent)Whether execution will generate an event in the event logTaskContextTaskContext. marshaller(Marshaller marshaller)The marshaller with which this task should be executedTaskContextTaskContext. parameters(Map<String,?> parameters)A map of named parameters that will be passed to the task.TaskContextTaskContext. subject(Subject subject)The subject to impersonate when running this task.Methods in org.infinispan.tasks with parameters of type TaskContext Modifier and Type Method Description voidServerTask. 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 Note that there will be a single instance of each ServerTask on each server so, if you expect concurrent invocations of a task, theTaskContextshould be stored in aThreadLocalstatic field in your task.
-