public static final class KeystoneFallbacks.EmptyPaginatedCollectionOnNotFoundOr404 extends Object implements Fallback<PaginatedCollection<Object>>
| Constructor and Description |
|---|
KeystoneFallbacks.EmptyPaginatedCollectionOnNotFoundOr404() |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.util.concurrent.ListenableFuture<PaginatedCollection<Object>> |
create(Throwable t) |
PaginatedCollection<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. |
public KeystoneFallbacks.EmptyPaginatedCollectionOnNotFoundOr404()
public com.google.common.util.concurrent.ListenableFuture<PaginatedCollection<Object>> create(Throwable t) throws Exception
create in interface com.google.common.util.concurrent.FutureFallback<PaginatedCollection<Object>>Exceptionpublic PaginatedCollection<Object> createOrPropagate(Throwable t) throws Exception
FallbackFallback implementation can
conditionally determine whether to propagate the exception or to attempt
to recover.createOrPropagate in interface Fallback<PaginatedCollection<Object>>t - the exception that made the call fail.ExceptionCopyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.