Package | Description |
---|---|
org.infinispan.tasks |
Modifier and Type | Method and Description |
---|---|
TaskContext |
TaskContext.addParameter(String name,
Object value)
Adds a named parameter to the task context
|
TaskContext |
TaskContext.cache(Cache<?,?> cache)
The cache against which this task will be executed.
|
TaskContext |
TaskContext.logEvent(boolean logEvent)
Whether execution will generate an event in the event log
|
TaskContext |
TaskContext.marshaller(Marshaller marshaller)
The marshaller with which this task should be executed
|
TaskContext |
TaskContext.parameters(Map<String,?> parameters)
A map of named parameters that will be passed to the task.
|
Modifier and Type | Method and Description |
---|---|
void |
ServerTask.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
|
Copyright © 2022 JBoss, a division of Red Hat. All rights reserved.