public class InvalidateSessionAndRetryOn401AndLogoutOnClose extends BackoffLimitedRetryHandler
| Modifier and Type | Field and Description | 
|---|---|
protected Logger | 
logger  | 
INSTANCEALWAYS_RETRY, NEVER_RETRYALWAYS_RETRY, NEVER_RETRY| Modifier | Constructor and Description | 
|---|---|
protected  | 
InvalidateSessionAndRetryOn401AndLogoutOnClose(com.google.common.cache.LoadingCache<Credentials,LoginResponse> authenticationResponseCache,
                                              SessionClient sessionClient)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
logoutOnClose()
it is important that we close any sessions on close to help the server not become overloaded. 
 | 
boolean | 
shouldRetryRequest(HttpCommand command,
                  HttpResponse response)
Return true if the command should be retried. 
 | 
imposeBackoffExponentialDelay, imposeBackoffExponentialDelay, imposeBackoffExponentialDelay, shouldRetryRequestprotected Logger logger
@Inject protected InvalidateSessionAndRetryOn401AndLogoutOnClose(com.google.common.cache.LoadingCache<Credentials,LoginResponse> authenticationResponseCache, SessionClient sessionClient)
public boolean shouldRetryRequest(HttpCommand command, HttpResponse response)
HttpRetryHandlershouldRetryRequest in interface HttpRetryHandlershouldRetryRequest in class BackoffLimitedRetryHandler@PreDestroy public void logoutOnClose()
Copyright © 2009-2013 jclouds. All Rights Reserved.