Interface TaskExecutor

    • Method Detail

      • execute

        void execute​(Runnable task)
        Execute the given task.

        The call might return immediately if the implementation uses an asynchronous execution strategy, or might block in the case of synchronous execution.

        Specified by:
        execute in interface Executor
        Parameters:
        task - the Runnable to execute (never null)
        Throws:
        TaskRejectedException - if the given task was not accepted