public class InvalidateSessionAndRetryOn401AndLogoutOnClose
extends org.jclouds.http.handlers.BackoffLimitedRetryHandler
| Modifier | Constructor and Description |
|---|---|
protected |
InvalidateSessionAndRetryOn401AndLogoutOnClose(com.google.common.cache.LoadingCache<org.jclouds.domain.Credentials,LoginResponse> authenticationResponseCache,
SessionApi 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(org.jclouds.http.HttpCommand command,
org.jclouds.http.HttpResponse response) |
@Inject protected InvalidateSessionAndRetryOn401AndLogoutOnClose(com.google.common.cache.LoadingCache<org.jclouds.domain.Credentials,LoginResponse> authenticationResponseCache, SessionApi sessionClient)
public boolean shouldRetryRequest(org.jclouds.http.HttpCommand command,
org.jclouds.http.HttpResponse response)
shouldRetryRequest in interface org.jclouds.http.HttpRetryHandlershouldRetryRequest in class org.jclouds.http.handlers.BackoffLimitedRetryHandler@PreDestroy public void logoutOnClose()
Copyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.