Interface TryExecutor

    • Method Detail

      • tryExecute

        boolean tryExecute​(java.lang.Runnable task)
        Attempt to execute a task.
        Parameters:
        task - The task to be executed
        Returns:
        True IFF the task has been given directly to a thread to execute. The task cannot be queued pending the later availability of a Thread.
      • execute

        default void execute​(java.lang.Runnable task)
        Specified by:
        execute in interface java.util.concurrent.Executor
      • asTryExecutor

        static TryExecutor asTryExecutor​(java.util.concurrent.Executor executor)