Interface TaskEngine

  • All Known Implementing Classes:
    AdminOperationsHandler, EmbeddedServerAdminOperationHandler

    public interface TaskEngine
    TaskEngine. An implementation of an engine for executing tasks. How the tasks are implemented is dependent on the engine itself.
    Since:
    8.1
    Author:
    Tristan Tarrant
    • Method Detail

      • getName

        String getName()
        Returns the name of the engine
      • getTasks

        List<Task> getTasks()
        Returns the list of tasks managed by this engine
        Returns:
      • runTask

        <T> CompletableFuture<T> runTask​(String taskName,
                                         TaskContext context,
                                         Executor executor)
        Executes the named task on the specified cache, passing a map of named parameters.
        Parameters:
        taskName - the name of the task
        context - a task context
        executor - the executor which the can be used by the task engine to run the task
        Returns:
      • handles

        boolean handles​(String taskName)
        Returns whether this task engine knows about a specified named task
        Parameters:
        taskName -
        Returns: