
org.infinispan.server.tasks.ServerTaskRunner Maven / Gradle / Ivy
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