Class 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • logger

        private final org.slf4j.Logger logger
    • Constructor Detail

      • RetryHandlerStale

        private RetryHandlerStale()
    • Method Detail

      • retryRequest

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