public final class SystemPropertiesConnectionPool extends Object
http.keepAlive
true if HTTP and SPDY connections should be pooled at all. Default
is true.
http.maxConnections
maximum number of idle connections to each to keep in the
pool. Default is 5.
http.keepAliveDuration
Time in milliseconds to keep the connection alive in the
pool before closing it. Default is 5 minutes. This property isn't used by HttpURLConnection
.
The default instance doesn't adjust its configuration as system properties are changed. This assumes that the applications that set these parameters do so before making HTTP connections, and that this class is initialized lazily.
public static final ConnectionPool INSTANCE
Copyright © 2016. All Rights Reserved.