Class TryExecutor.NoTryExecutor

  • All Implemented Interfaces:
    java.util.concurrent.Executor, TryExecutor
    Enclosing interface:

    public static class TryExecutor.NoTryExecutor
    extends java.lang.Object
    implements TryExecutor
    • Field Summary

    • Constructor Summary

      Constructor Description
      NoTryExecutor​(java.util.concurrent.Executor executor)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute​(java.lang.Runnable task)  
      java.lang.String toString()  
      boolean tryExecute​(java.lang.Runnable task)
      Attempt to execute a task.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • NoTryExecutor

        public NoTryExecutor​(java.util.concurrent.Executor executor)
    • Method Detail

      • execute

        public void execute​(java.lang.Runnable task)
        Specified by:
        execute in interface java.util.concurrent.Executor
        Specified by:
        execute in interface TryExecutor
      • tryExecute

        public boolean tryExecute​(java.lang.Runnable task)
        Description copied from interface: TryExecutor
        Attempt to execute a task.
        Specified by:
        tryExecute in interface TryExecutor
        task - The task to be executed
        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 java.lang.String toString()
        toString in class java.lang.Object