org.jclouds
Class Fallbacks.TrueOnNotFoundOr404
java.lang.Object
org.jclouds.Fallbacks.TrueOnNotFoundOr404
- All Implemented Interfaces:
- com.google.common.util.concurrent.FutureFallback<Boolean>, Fallback<Boolean>
- Enclosing class:
- Fallbacks
public static final class Fallbacks.TrueOnNotFoundOr404
- extends Object
- implements Fallback<Boolean>
|
Method Summary |
com.google.common.util.concurrent.ListenableFuture<Boolean> |
create(Throwable t)
|
Boolean |
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 |
Fallbacks.TrueOnNotFoundOr404
public Fallbacks.TrueOnNotFoundOr404()
create
public com.google.common.util.concurrent.ListenableFuture<Boolean> create(Throwable t)
throws Exception
- Specified by:
create in interface com.google.common.util.concurrent.FutureFallback<Boolean>
- Throws:
Exception
createOrPropagate
public Boolean 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<Boolean>
- Parameters:
t - the exception that made the call fail.
- Throws:
Exception
Copyright © 2009-2013 jclouds. All Rights Reserved.