@Singleton public class RedirectionRetryHandler extends Object implements HttpRetryHandler
Modifier and Type | Field and Description |
---|---|
protected BackoffLimitedRetryHandler |
backoffHandler |
protected Logger |
logger |
protected int |
retryCountLimit |
ALWAYS_RETRY, NEVER_RETRY
Modifier | Constructor and Description |
---|---|
protected |
RedirectionRetryHandler(BackoffLimitedRetryHandler backoffHandler) |
Modifier and Type | Method and Description |
---|---|
boolean |
shouldRetryRequest(HttpCommand command,
HttpResponse response)
Return true if the command should be retried.
|
@Inject(optional=true) @Named(value="jclouds.max-redirects") protected int retryCountLimit
protected Logger logger
protected final BackoffLimitedRetryHandler backoffHandler
@Inject protected RedirectionRetryHandler(BackoffLimitedRetryHandler backoffHandler)
public boolean shouldRetryRequest(HttpCommand command, HttpResponse response)
HttpRetryHandler
shouldRetryRequest
in interface HttpRetryHandler
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.