depends.org.apache.http.concurrent

类 BasicFuture<T>

    • 方法概要

      方法 
      限定符和类型 方法和说明
      boolean cancel() 
      boolean cancel(boolean mayInterruptIfRunning) 
      boolean completed(T result) 
      boolean failed(java.lang.Exception exception) 
      T get() 
      T get(long timeout, java.util.concurrent.TimeUnit unit) 
      boolean isCancelled() 
      boolean isDone() 
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 方法详细资料

      • isCancelled

        public boolean isCancelled()
        指定者:
        isCancelled 在接口中 java.util.concurrent.Future<T>
      • isDone

        public boolean isDone()
        指定者:
        isDone 在接口中 java.util.concurrent.Future<T>
      • get

        public T get()
              throws java.lang.InterruptedException,
                     java.util.concurrent.ExecutionException
        指定者:
        get 在接口中 java.util.concurrent.Future<T>
        抛出:
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
      • get

        public T get(long timeout,
            java.util.concurrent.TimeUnit unit)
              throws java.lang.InterruptedException,
                     java.util.concurrent.ExecutionException,
                     java.util.concurrent.TimeoutException
        指定者:
        get 在接口中 java.util.concurrent.Future<T>
        抛出:
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
        java.util.concurrent.TimeoutException
      • completed

        public boolean completed(T result)
      • failed

        public boolean failed(java.lang.Exception exception)
      • cancel

        public boolean cancel(boolean mayInterruptIfRunning)
        指定者:
        cancel 在接口中 java.util.concurrent.Future<T>