All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.server.tasks.ServerTaskRunner Maven / Gradle / Ivy

There is a newer version: 15.1.3.Final
Show newest version
package org.infinispan.server.tasks;

import java.util.concurrent.CompletableFuture;

import org.infinispan.tasks.TaskContext;

/**
 * Used by ServerTaskEngine to executed ServerTasks
 *
 * @author Michal Szynkiewicz, [email protected]
 */
public interface ServerTaskRunner {
   /**
    * Trigger execution of a ServerTask with given name. Returns a CompletableFuture, from which the result of execution
    * can be obtained.
    *
    * @param taskName name of the task to be executed
    * @param context  task context injected into task upon execution
    * @param       task return type
    * @return completable future providing a way to get the result
    */
    CompletableFuture execute(String taskName, TaskContext context);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy