Class FutureResponse

  • All Implemented Interfaces:
    java.util.concurrent.Future<Response>

    public class FutureResponse
    extends com.google.common.util.concurrent.ForwardingFuture<Response>
    A processing response which will arrive in the future.
    Author:
    bratseth
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.google.common.util.concurrent.ForwardingFuture

        com.google.common.util.concurrent.ForwardingFuture.SimpleForwardingFuture<V extends java.lang.Object>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.google.common.util.concurrent.ListenableFutureTask<Response> delegate()  
      Response get()  
      Response get​(long timeout, java.util.concurrent.TimeUnit timeunit)  
      Request getRequest()
      Returns the query used in this execution, never null
      • Methods inherited from class com.google.common.util.concurrent.ForwardingFuture

        cancel, isCancelled, isDone
      • Methods inherited from class com.google.common.collect.ForwardingObject

        toString
      • Methods inherited from class java.lang.Object

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

      • FutureResponse

        public FutureResponse​(java.util.concurrent.Callable<Response> callable,
                              Execution execution,
                              Request request)
    • Method Detail

      • delegate

        public com.google.common.util.concurrent.ListenableFutureTask<Response> delegate()
        Specified by:
        delegate in class com.google.common.util.concurrent.ForwardingFuture<Response>
      • get

        public Response get()
        Specified by:
        get in interface java.util.concurrent.Future<Response>
        Overrides:
        get in class com.google.common.util.concurrent.ForwardingFuture<Response>
      • get

        public Response get​(long timeout,
                            java.util.concurrent.TimeUnit timeunit)
        Specified by:
        get in interface java.util.concurrent.Future<Response>
        Overrides:
        get in class com.google.common.util.concurrent.ForwardingFuture<Response>
      • getRequest

        public Request getRequest()
        Returns the query used in this execution, never null