0
Env:HttpClient 4.4。 HttpClientBuilderクラスでHttpClient共有接続マネージャ
、私はこの二つの条件を相関させることはできませんよ、次のコード、
if (!this.connManagerShared){
// ...some code
if (this.evictExpiredConnections || this.evictIdleConnections) {
final IdleConnectionEvictor connectionEvictor = new IdleConnectionEvictor((HttpClientConnectionManager) connManagerCopy,
this.maxIdleTime > 0L ? this.maxIdleTime : 10L, this.maxIdleTimeUnit != null ? this.maxIdleTimeUnit : TimeUnit.SECONDS);
closeablesCopy1.add(new Closeable()
{
public void close() throws IOException
{
connectionEvictor.shutdown();
}
});
connectionEvictor.start();
}
// ...some code
}
を見ることができます。
共有接続マネージャを使用している場合、なぜIdleConnectionEvictorを使用しないのですか?