Class QueryCompletableFuture<T>

java.lang.Object
septogeddon.pluginquery.QueryFutureAdapter<T>
septogeddon.pluginquery.QueryCompletableFuture<T>
All Implemented Interfaces:
QueryFuture<T>

public class QueryCompletableFuture<T> extends QueryFutureAdapter<T>
  • Constructor Details

    • QueryCompletableFuture

      public QueryCompletableFuture()
  • Method Details

    • complete

      public void complete(T result)
      Overrides:
      complete in class QueryFutureAdapter<T>
    • completeExceptionally

      public void completeExceptionally(Throwable cause)
      Overrides:
      completeExceptionally in class QueryFutureAdapter<T>
    • joinThread

      public void joinThread()
      Description copied from interface: QueryFuture
      Force to wait current thread until the task finished
    • joinThread

      public void joinThread(long timeout)
      Description copied from interface: QueryFuture
      Force to wait current thread until the task finished, will ignore if its too long specified by timeout
      Parameters:
      timeout -