Class SettableFutureCallback<T>

  • All Implemented Interfaces:
    com.google.common.util.concurrent.FutureCallback<T>

    public class SettableFutureCallback<T>
    extends java.lang.Object
    implements com.google.common.util.concurrent.FutureCallback<T>
    • Constructor Summary

      Constructors 
      Constructor Description
      SettableFutureCallback​(com.google.common.util.concurrent.SettableFuture<T> settableFuture)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onFailure​(java.lang.Throwable throwable)  
      void onSuccess​(T objT)  
      • Methods inherited from class java.lang.Object

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

      • SettableFutureCallback

        public SettableFutureCallback​(com.google.common.util.concurrent.SettableFuture<T> settableFuture)
    • Method Detail

      • onSuccess

        public void onSuccess​(T objT)
        Specified by:
        onSuccess in interface com.google.common.util.concurrent.FutureCallback<T>
      • onFailure

        public void onFailure​(java.lang.Throwable throwable)
        Specified by:
        onFailure in interface com.google.common.util.concurrent.FutureCallback<T>