public final class SessionManager extends BackoffLimitedRetryHandler implements HttpRequestFilter
INSTANCEALWAYS_RETRY, NEVER_RETRYALWAYS_RETRY, NEVER_RETRY| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
filter(HttpRequest request) |
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, shouldRetryRequestpublic HttpRequest filter(HttpRequest request) throws HttpException
filter in interface HttpRequestFilterHttpExceptionpublic boolean shouldRetryRequest(HttpCommand command, HttpResponse response)
HttpRetryHandlershouldRetryRequest in interface HttpRetryHandlershouldRetryRequest in class BackoffLimitedRetryHandler@PreDestroy public void logoutOnClose()
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.