Class DistributedServerTaskRunner

java.lang.Object
org.infinispan.server.tasks.DistributedServerTaskRunner
All Implemented Interfaces:
ServerTaskRunner

public class DistributedServerTaskRunner extends Object implements ServerTaskRunner
Author:
Michal Szynkiewicz, michal.l.szynkiewicz@gmail.com
  • Constructor Details

    • DistributedServerTaskRunner

      public DistributedServerTaskRunner()
  • Method Details

    • execute

      public <T> CompletableFuture<T> execute(String taskName, org.infinispan.tasks.TaskContext context)
      Description copied from interface: ServerTaskRunner
      Trigger execution of a ServerTask with given name. Returns a CompletableFuture, from which the result of execution can be obtained.
      Specified by:
      execute in interface ServerTaskRunner
      Type Parameters:
      T - task return type
      Parameters:
      taskName - name of the task to be executed
      context - task context injected into task upon execution
      Returns:
      completable future providing a way to get the result