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 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 Details

    • logger

      private final org.slf4j.Logger logger
  • Constructor Details

    • RetryHandlerStale

      private RetryHandlerStale()
  • Method Details

    • retryRequest

      public boolean retryRequest(IOException ioe, int count, org.apache.http.protocol.HttpContext context)
      Specified by:
      retryRequest in interface org.apache.http.client.HttpRequestRetryHandler