|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jclouds.fallbacks.HeaderToRetryAfterException
@Beta public final class HeaderToRetryAfterException
propagates as RetryAfterException if a Throwable is an
HttpResponseException with a set and a valid
HttpHeaders.RETRY_AFTER header set.
| Method Summary | |
|---|---|
com.google.common.util.concurrent.ListenableFuture<Object> |
create(Throwable t)
if input is not of type HttpResponseException, this method propagates. |
static HeaderToRetryAfterException |
create(com.google.common.base.Ticker ticker,
DateCodec dateCodec)
|
com.google.common.base.Optional<RetryAfterException> |
tryCreateRetryAfterException(Throwable in,
String retryAfter)
returns a RetryAfterException if parameter retryAfter
corresponds to known formats. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static HeaderToRetryAfterException create(com.google.common.base.Ticker ticker,
DateCodec dateCodec)
ticker - how to read current timedateParser - how to parse the HttpHeaders.RETRY_AFTER header, if it
is a Date.
public com.google.common.util.concurrent.ListenableFuture<Object> create(Throwable t)
PropagateIfRetryAfterHttpResponseException, this method propagates. Otherwise, immediate future of
null, if didn't coerce to RetryAfterException
create in interface com.google.common.util.concurrent.FutureFallback<Object>create in interface PropagateIfRetryAfter
public com.google.common.base.Optional<RetryAfterException> tryCreateRetryAfterException(Throwable in,
String retryAfter)
RetryAfterException if parameter retryAfter
corresponds to known formats.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||