org.jclouds
Interface Fallback<V>

Type Parameters:
V - the result type of the backup value
All Superinterfaces:
com.google.common.util.concurrent.FutureFallback<V>
All Known Implementing Classes:
Fallbacks.AbsentOn403Or404Or500, Fallbacks.EmptyFluentIterableOnNotFoundOr404, Fallbacks.EmptyIterableWithMarkerOnNotFoundOr404, Fallbacks.EmptyListOnNotFoundOr404, Fallbacks.EmptyMapOnNotFoundOr404, Fallbacks.EmptyMultimapOnNotFoundOr404, Fallbacks.EmptyPagedIterableOnNotFoundOr404, Fallbacks.EmptySetOnNotFoundOr404, Fallbacks.FalseOnNotFoundOr404, Fallbacks.FalseOnNotFoundOr422, Fallbacks.NullOnNotFoundOr404, Fallbacks.TrueOnNotFoundOr404, Fallbacks.VoidOnNotFoundOr404, MapHttp4xxCodesToExceptions

@Beta
public interface Fallback<V>
extends com.google.common.util.concurrent.FutureFallback<V>

Provides a backup value to replace an earlier exception.

Since:
1.6
Author:
Adrian Cole
See Also:
FutureFallback

Method Summary
 V 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 interface com.google.common.util.concurrent.FutureFallback
create
 

Method Detail

createOrPropagate

V createOrPropagate(Throwable t)
                    throws 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 call fail.
Throws:
Exception


Copyright © 2009-2013 jclouds. All Rights Reserved.