Skip to content

Commit

Permalink
inactivity var for lav
Browse files Browse the repository at this point in the history
  • Loading branch information
janolaveide committed Jun 2, 2021
1 parent 0b17702 commit 01a51d2
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,10 @@ public static List<Header> defaultHeaders() {
}

public static PoolingHttpClientConnectionManager connectionManager() {
ConnectionConfig defaultConnectionConfig = defaultConnectionConfig();
PoolingHttpClientConnectionManager connManager = new PoolingHttpClientConnectionManager(55, TimeUnit.MINUTES);
connManager.setMaxTotal(100);
connManager.setDefaultConnectionConfig(defaultConnectionConfig);
connManager.setValidateAfterInactivity(100);
connManager.setDefaultConnectionConfig(defaultConnectionConfig());
connManager.setValidateAfterInactivity(30000);
new PoolingHttpClientConnectionManagerMetricsBinder(connManager, "jersey-pool").bindTo(Metrics.globalRegistry);
return connManager;
}
Expand Down

0 comments on commit 01a51d2

Please sign in to comment.