@Singleton public class DelegatingRetryHandler extends Object implements HttpRetryHandler
HttpRetryHandlers who are annotated according to the
response codes they relate to.ALWAYS_RETRY, NEVER_RETRY| Constructor and Description |
|---|
DelegatingRetryHandler(BackoffLimitedRetryHandler backOff,
RedirectionRetryHandler redirectionRetryHandler) |
| Modifier and Type | Method and Description |
|---|---|
HttpRetryHandler |
getClientErrorRetryHandler() |
HttpRetryHandler |
getRedirectionRetryHandler() |
HttpRetryHandler |
getServerErrorRetryHandler() |
boolean |
shouldRetryRequest(HttpCommand command,
HttpResponse response)
Return true if the command should be retried.
|
@Inject public DelegatingRetryHandler(BackoffLimitedRetryHandler backOff, RedirectionRetryHandler redirectionRetryHandler)
public boolean shouldRetryRequest(HttpCommand command, HttpResponse response)
HttpRetryHandlershouldRetryRequest in interface HttpRetryHandlerpublic HttpRetryHandler getRedirectionRetryHandler()
public HttpRetryHandler getClientErrorRetryHandler()
public HttpRetryHandler getServerErrorRetryHandler()
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.