Interface FutureFallback<V>

    • Method Summary

      Modifier and Type Method and Description
      ListenableFuture<V> create(Throwable t)
      Deprecated. 
      Returns a Future to be used in place of the Future that failed with the given exception.
    • Method Detail

      • create

        ListenableFuture<V> create(Throwable t)
                            throws Exception
        Deprecated. 
        Returns a Future to be used in place of the Future that failed with the given exception. The exception is provided so that the Fallback implementation can conditionally determine whether to propagate the exception or to attempt to recover.
        Parameters:
        t - the exception that made the future fail. If the future's get method throws an ExecutionException, then the cause is passed to this method. Any other thrown object is passed unaltered.
        Throws:
        Exception