Package org.dspace.service.impl
Class HttpConnectionPoolService.KeepAliveStrategy
- java.lang.Object
-
- org.dspace.service.impl.HttpConnectionPoolService.KeepAliveStrategy
-
- All Implemented Interfaces:
org.apache.http.conn.ConnectionKeepAliveStrategy
- Enclosing class:
- HttpConnectionPoolService
public class HttpConnectionPoolService.KeepAliveStrategy extends Object implements org.apache.http.conn.ConnectionKeepAliveStrategy
A connection keep-alive strategy that obeys the Keep-Alive header and applies a default if none is given. Swiped from https://www.baeldung.com/httpclient-connection-management
-
-
Constructor Summary
Constructors Constructor Description KeepAliveStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetKeepAliveDuration(org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)
-