Package org.infinispan.server.tasks
Class DistributedServerTaskRunner
java.lang.Object
org.infinispan.server.tasks.DistributedServerTaskRunner
- All Implemented Interfaces:
ServerTaskRunner
- Author:
- Michal Szynkiewicz, michal.l.szynkiewicz@gmail.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> CompletableFuture<T> Trigger execution of a ServerTask with given name.
-
Constructor Details
-
DistributedServerTaskRunner
public DistributedServerTaskRunner()
-
-
Method Details
-
execute
Description copied from interface:ServerTaskRunnerTrigger execution of a ServerTask with given name. Returns a CompletableFuture, from which the result of execution can be obtained.- Specified by:
executein interfaceServerTaskRunner- Type Parameters:
T- task return type- Parameters:
taskName- name of the task to be executedcontext- task context injected into task upon execution- Returns:
- completable future providing a way to get the result
-