Class TryExecutor.NoTryExecutor

java.lang.Object
org.eclipse.jetty.util.thread.TryExecutor.NoTryExecutor
All Implemented Interfaces:
Executor, TryExecutor
Enclosing interface:
TryExecutor

public static class TryExecutor.NoTryExecutor extends Object implements TryExecutor
  • Constructor Details

    • NoTryExecutor

      public NoTryExecutor(Executor executor)
  • Method Details

    • execute

      public void execute(Runnable task)
      Specified by:
      execute in interface Executor
      Specified by:
      execute in interface TryExecutor
    • tryExecute

      public boolean tryExecute(Runnable task)
      Description copied from interface: TryExecutor
      Attempt to execute a task.
      Specified by:
      tryExecute in interface TryExecutor
      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.
    • toString

      public String toString()
      Overrides:
      toString in class Object