Interface ServerTaskRunner

    • Method Detail

      • execute

        <T> CompletableFuture<T> execute​(String taskName,
                                         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:
        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