Class AsyncExecutor.Task<T>

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    AsyncExecutor<T>

    protected static class AsyncExecutor.Task<T>
    extends java.lang.Object
    implements java.lang.Runnable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.concurrent.CompletableFuture<T> cf  
      protected java.util.function.Supplier<T> task  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Task​(java.util.function.Supplier<T> task, java.util.concurrent.CompletableFuture<T> cf)  
    • Field Detail

      • task

        protected final java.util.function.Supplier<T> task
      • cf

        protected final java.util.concurrent.CompletableFuture<T> cf
    • Constructor Detail

      • Task

        protected Task​(java.util.function.Supplier<T> task,
                       java.util.concurrent.CompletableFuture<T> cf)
    • Method Detail

      • completeExceptionally

        protected AsyncExecutor.Task<T> completeExceptionally​(java.lang.Throwable t)
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable