Açıklaması şöyle
The Java 11 HttpClient has an internal connection pool. By default, it is unlimited in size.
Açıklaması şöyle
The JDK 11 ConnectionPool checks the jdk.httpclient.connectionPoolSize system property when initializing and defaults to 0 (unlimited).
Örnek
Şöyle yaparız
HttpClient client = HttpClient.newBuilder().connectionPool(ConnectionPool.newBuilder().maxConnections(50).build()).build();
Hiç yorum yok:
Yorum Gönder