Package | Description |
---|---|
org.infinispan.scripting |
Scripting APIs
|
org.infinispan.tasks |
Classes and interfaces related to task execution
|
Modifier and Type | Method and Description |
---|---|
<T> CompletableFuture<T> |
ScriptingManager.runScript(String scriptName,
TaskContext context)
Runs a named script using the specified
TaskContext |
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.cacheManager(EmbeddedCacheManager cacheManager)
The cache manager with which this task should 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.
|
TaskContext |
TaskContext.subject(Subject subject)
The subject to impersonate when running this task.
|
Modifier and Type | Method and Description |
---|---|
<T> CompletableFuture<T> |
TaskManager.runTask(String taskName,
TaskContext context)
Executes the named task, passing an optional cache and a map of named parameters.
|
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 © 2018 JBoss, a division of Red Hat. All rights reserved.