Class CurrentThreadExecutor

  • All Implemented Interfaces:
    CloseableExecutor, java.lang.AutoCloseable, java.util.concurrent.Executor

    public class CurrentThreadExecutor
    extends java.lang.Object
    implements CloseableExecutor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void execute​(java.lang.Runnable runnable)  
      • Methods inherited from class java.lang.Object

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

      • CurrentThreadExecutor

        public CurrentThreadExecutor()
    • Method Detail

      • execute

        public void execute​(java.lang.Runnable runnable)
        Specified by:
        execute in interface java.util.concurrent.Executor
      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception