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 Type
    Method
    Description
    execute(ServerTaskWrapper<T> task, org.infinispan.tasks.TaskContext context)
    Trigger execution of a ServerTask with given name.
  • Method Details

    • execute

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