Package org.jclouds.openstack.handlers
Class RetryOnRenew
java.lang.Object
org.jclouds.openstack.handlers.RetryOnRenew
- All Implemented Interfaces:
org.jclouds.http.HttpRetryHandler
This will parse and set an appropriate exception on the command object.
-
Field Summary
FieldsFields inherited from interface org.jclouds.http.HttpRetryHandler
ALWAYS_RETRY, NEVER_RETRY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRetryOnRenew(com.google.common.cache.LoadingCache<org.jclouds.domain.Credentials, AuthenticationResponse> authenticationResponseCache) -
Method Summary
Modifier and TypeMethodDescriptionbooleanshouldRetryRequest(org.jclouds.http.HttpCommand command, org.jclouds.http.HttpResponse response)
-
Field Details
-
logger
protected org.jclouds.logging.Logger logger
-
-
Constructor Details
-
RetryOnRenew
@Inject protected RetryOnRenew(com.google.common.cache.LoadingCache<org.jclouds.domain.Credentials, AuthenticationResponse> authenticationResponseCache)
-
-
Method Details
-
shouldRetryRequest
public boolean shouldRetryRequest(org.jclouds.http.HttpCommand command, org.jclouds.http.HttpResponse response) - Specified by:
shouldRetryRequestin interfaceorg.jclouds.http.HttpRetryHandler
-