문제

We're using the PostMethod in org.apache.commons.httpclient.methods and noticed that the recycle method from the HttpMethod interface has been deprecated.

Is there an alternative to this method?

도움이 되었습니까?

해결책

I think the idea is to simply create a new one.

The cost of creating new short lived objects is actually pretty cheap and a lot less error prone than attempting to maintain an object pool.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top