Java HTTPClient:PoolingClientConnectionManager 线程中的 closeIdleConnections 是否安全?

Java HTTPClient: Is closeIdleConnections in PoolingClientConnectionManager thread safe?

我打算在 PoolingClientConnectionManager class 中使用 closeIdleConnections 方法,但首先要确保它是线程安全的。 IE。当 closeIdleConnections 方法为 运行 时,请求将不会被授予连接或导致奇怪的同步错误。或者我必须使用同步代码手动实现线程安全 blocks/methods?

是接口方法,Javadoc for the interface表示

implementations of this interface must be thread-safe.