Module methanol

Class SerialExecutor

  • All Implemented Interfaces:
    java.util.concurrent.Executor

    public final class SerialExecutor
    extends java.lang.Object
    implements java.util.concurrent.Executor
    An executor that ensures submitted tasks are executed serially.
    • Constructor Summary

      Constructors 
      Constructor Description
      SerialExecutor​(java.util.concurrent.Executor delegate)  
    • Method Summary

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

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

      • SerialExecutor

        public SerialExecutor​(java.util.concurrent.Executor delegate)
    • Method Detail

      • execute

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

        public void shutdown()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object