Class ThriftListenableFuture<T>

  • All Implemented Interfaces:
    com.google.common.util.concurrent.ListenableFuture<T>, Future<T>, AsyncMethodCallback<T>

    public class ThriftListenableFuture<T>
    extends com.google.common.util.concurrent.AbstractFuture<T>
    implements AsyncMethodCallback<T>
    A ListenableFuture that can be passed in as an AsyncMethodCallback when making an asynchronous client-side Thrift RPC.
    • Method Summary

      Modifier and Type Method Description
      void onComplete​(T t)  
      void onError​(Exception e)  
      • Methods inherited from class com.google.common.util.concurrent.AbstractFuture

        addListener, afterDone, cancel, get, get, interruptTask, isCancelled, isDone, pendingToString, set, setException, setFuture, toString, tryInternalFastPathGetFailure, wasInterrupted