Class ExecutionQueue

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class ExecutionQueue
    extends java.lang.Object
    implements java.io.Closeable
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      <T> AsyncTask<T> enqueue​(java.util.function.BiConsumer<java.util.function.Consumer<T>,​java.util.function.Consumer<java.lang.Throwable>> runnable)  
      • Methods inherited from class java.lang.Object

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

      • ExecutionQueue

        protected ExecutionQueue()
      • ExecutionQueue

        protected ExecutionQueue​(AsyncExecutor executor)
    • Method Detail

      • enqueue

        public <T> AsyncTask<T> enqueue​(java.util.function.BiConsumer<java.util.function.Consumer<T>,​java.util.function.Consumer<java.lang.Throwable>> runnable)
      • close

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