org.jclouds
Class Fallbacks.EmptyFluentIterableOnNotFoundOr404

java.lang.Object
  extended by org.jclouds.Fallbacks.EmptyFluentIterableOnNotFoundOr404
All Implemented Interfaces:
com.google.common.util.concurrent.FutureFallback<com.google.common.collect.FluentIterable<Object>>, Fallback<com.google.common.collect.FluentIterable<Object>>
Enclosing class:
Fallbacks

public static final class Fallbacks.EmptyFluentIterableOnNotFoundOr404
extends Object
implements Fallback<com.google.common.collect.FluentIterable<Object>>


Constructor Summary
Fallbacks.EmptyFluentIterableOnNotFoundOr404()
           
 
Method Summary
 com.google.common.util.concurrent.ListenableFuture<com.google.common.collect.FluentIterable<Object>> create(Throwable t)
           
 com.google.common.collect.FluentIterable<Object> createOrPropagate(Throwable t)
          The exception is provided so that the Fallback implementation can conditionally determine whether to propagate the exception or to attempt to recover.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Fallbacks.EmptyFluentIterableOnNotFoundOr404

public Fallbacks.EmptyFluentIterableOnNotFoundOr404()
Method Detail

create

public com.google.common.util.concurrent.ListenableFuture<com.google.common.collect.FluentIterable<Object>> create(Throwable t)
                                                                                                            throws Exception
Specified by:
create in interface com.google.common.util.concurrent.FutureFallback<com.google.common.collect.FluentIterable<Object>>
Throws:
Exception

createOrPropagate

public com.google.common.collect.FluentIterable<Object> createOrPropagate(Throwable t)
                                                                   throws Exception
Description copied from interface: Fallback
The exception is provided so that the Fallback implementation can conditionally determine whether to propagate the exception or to attempt to recover.

Specified by:
createOrPropagate in interface Fallback<com.google.common.collect.FluentIterable<Object>>
Parameters:
t - the exception that made the call fail.
Throws:
Exception


Copyright © 2009-2013 jclouds. All Rights Reserved.