Interface TryExecutor

    • Field Detail

    • Method Detail

      • tryExecute

        boolean tryExecute​(java.lang.Runnable task)
        Deprecated.
        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)
        Deprecated.
        Specified by:
        execute in interface java.util.concurrent.Executor
      • asTryExecutor

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