public interface PropagateIfRetryAfter extends Fallback<Object>
RetryAfterException
if a Throwable contains information such as a retry
offset.Modifier and Type | Method and Description |
---|---|
Object |
createOrPropagate(Throwable t)
if input is not of type
HttpResponseException , this method propagates. |
Object createOrPropagate(Throwable t) throws Exception
HttpResponseException
, this method propagates. Otherwise,
null
, if didn't coerce to RetryAfterException
createOrPropagate
in interface Fallback<Object>
t
- the exception that made the call fail.Exception
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.