@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)
HttpRetryHandler
shouldRetryRequest
in interface HttpRetryHandler
public HttpRetryHandler getRedirectionRetryHandler()
public HttpRetryHandler getClientErrorRetryHandler()
public HttpRetryHandler getServerErrorRetryHandler()
Copyright © 2009-2012 jclouds. All Rights Reserved.