Uses of Class
org.infinispan.tasks.TaskContext
Packages that use TaskContext
-
Uses of TaskContext in org.infinispan.tasks
Classes in org.infinispan.tasks that implement interfaces with type arguments of type TaskContextModifier and TypeClassDescriptionfinal classWARNING: Generated code!Methods in org.infinispan.tasks that return TaskContextModifier and TypeMethodDescriptionTaskContext.addOptionalParameter(String name, Object value) Adds a named parameter to the task context only if it is non-nullTaskContext.addParameter(String name, Object value) Adds a named parameter to the task contextTaskContext.cache(org.infinispan.Cache<?, ?> cache) The cache against which this task will be executed.TaskContext.cacheManager(org.infinispan.manager.EmbeddedCacheManager cacheManager) The cache manager with which this task should be executedTaskContext.logEvent(boolean logEvent) Whether execution will generate an event in the event logTaskContext.marshaller(org.infinispan.commons.marshall.Marshaller marshaller) The marshaller with which this task should be executedTaskContext.parameters(Map<String, ?> parameters) A map of named parameters that will be passed to the task.TaskContext$___Marshaller_107c2564d592993c2656f63be7dc5f982f0390f0d5ab27d8031fa613c5423165.read(org.infinispan.protostream.ProtobufTagMarshaller.ReadContext $1) TaskContext.remoteQueryAccess(RemoteQueryAccess remoteQueryAccess) The subject to impersonate when running this task.Methods in org.infinispan.tasks that return types with arguments of type TaskContextModifier and TypeMethodDescriptionTaskContext$___Marshaller_107c2564d592993c2656f63be7dc5f982f0390f0d5ab27d8031fa613c5423165.getJavaClass()Methods in org.infinispan.tasks with parameters of type TaskContextModifier and TypeMethodDescriptionvoidServerTask.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, ifTask.getInstantiationMode()isTaskInstantiationMode.SHAREDthere will be 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.voidTaskContext$___Marshaller_107c2564d592993c2656f63be7dc5f982f0390f0d5ab27d8031fa613c5423165.write(org.infinispan.protostream.ProtobufTagMarshaller.WriteContext $1, TaskContext $2) Constructors in org.infinispan.tasks with parameters of type TaskContext