接口 TaskExecutor

    • 方法详细资料

      • 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.

        指定者:
        execute 在接口中 Executor
        参数:
        task - the Runnable to execute (never null)
        抛出:
        TaskRejectedException - if the given task was not accepted