开发者

What alternative is there to the recycle method in Java's HttpMethod?

We're using the PostMethod in org.apache.commons.htt开发者_如何学运维pclient.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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜