public final class B2RetryHandler extends BackoffLimitedRetryHandler implements HttpRequestFilter
INSTANCE
ALWAYS_RETRY, NEVER_RETRY
ALWAYS_RETRY, NEVER_RETRY
Modifier and Type | Method and Description |
---|---|
HttpRequest |
filter(HttpRequest request) |
boolean |
shouldRetryRequest(HttpCommand command,
HttpResponse response)
Return true if the command should be retried.
|
imposeBackoffExponentialDelay, imposeBackoffExponentialDelay, imposeBackoffExponentialDelay, shouldRetryRequest
public HttpRequest filter(HttpRequest request) throws HttpException
filter
in interface HttpRequestFilter
HttpException
public boolean shouldRetryRequest(HttpCommand command, HttpResponse response)
HttpRetryHandler
shouldRetryRequest
in interface HttpRetryHandler
shouldRetryRequest
in class BackoffLimitedRetryHandler
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.