Class LocalServerTaskRunner

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

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

    • getInstance

      public static LocalServerTaskRunner getInstance()
    • execute

      public <T> CompletableFuture<T> execute(ServerTaskWrapper<T> task, 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:
      task - task to be executed
      context - task context injected into task upon execution
      Returns:
      completable future providing a way to get the result