Class DistributedServerTaskRunner

    • Constructor Detail

      • DistributedServerTaskRunner

        public DistributedServerTaskRunner()
    • Method Detail

      • 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