Package org.eclipse.rdf4j.http.client
Class SharedHttpClientSessionManager.RetryHandlerStale
- java.lang.Object
-
- org.eclipse.rdf4j.http.client.SharedHttpClientSessionManager.RetryHandlerStale
-
- All Implemented Interfaces:
org.apache.http.client.HttpRequestRetryHandler
- Enclosing class:
- SharedHttpClientSessionManager
private static class SharedHttpClientSessionManager.RetryHandlerStale extends java.lang.Object implements org.apache.http.client.HttpRequestRetryHandler
Retry handler: closes stale connections and suggests to simply retry the HTTP request once. Just closing the stale connection is enough: the connection will be reopened elsewhere. This seems to be necessary for Jetty 9.4.24+.Other HTTP issues are considered to be more severe, so these requests are not retried.
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.Logger
logger
-
Constructor Summary
Constructors Modifier Constructor Description private
RetryHandlerStale()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
retryRequest(java.io.IOException ioe, int count, org.apache.http.protocol.HttpContext context)
-