Package org.infinispan.server.tasks
Interface ServerTaskRunner
- All Known Implementing Classes:
DistributedServerTaskRunner,LocalServerTaskRunner
public interface ServerTaskRunner
Used by ServerTaskEngine to executed ServerTasks
- Author:
- Michal Szynkiewicz, michal.l.szynkiewicz@gmail.com
-
Method Summary
Modifier and TypeMethodDescription<T> CompletableFuture<T>Trigger execution of a ServerTask with given name.
-
Method Details
-
execute
Trigger execution of a ServerTask with given name. Returns a CompletableFuture, from which the result of execution can be obtained.- 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
-