Class FutureResponseListener

    • Constructor Detail

      • FutureResponseListener

        public FutureResponseListener​(Request request)
      • FutureResponseListener

        public FutureResponseListener​(Request request,
                                      int maxLength)
    • Method Detail

      • getRequest

        public Request getRequest()
      • cancel

        public boolean cancel​(boolean mayInterruptIfRunning)
        Specified by:
        cancel in interface java.util.concurrent.Future<ContentResponse>
      • isCancelled

        public boolean isCancelled()
        Specified by:
        isCancelled in interface java.util.concurrent.Future<ContentResponse>
      • isDone

        public boolean isDone()
        Specified by:
        isDone in interface java.util.concurrent.Future<ContentResponse>
      • get

        public ContentResponse get()
                            throws java.lang.InterruptedException,
                                   java.util.concurrent.ExecutionException
        Specified by:
        get in interface java.util.concurrent.Future<ContentResponse>
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
      • get

        public ContentResponse get​(long timeout,
                                   java.util.concurrent.TimeUnit unit)
                            throws java.lang.InterruptedException,
                                   java.util.concurrent.ExecutionException,
                                   java.util.concurrent.TimeoutException
        Specified by:
        get in interface java.util.concurrent.Future<ContentResponse>
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
        java.util.concurrent.TimeoutException