Re: scala: apache httpclient in multi-threaded environment. confusion on correct way of use

2016-11-12 Thread Oleg Kalnichevski
On Sat, 2016-11-12 at 20:16 +0530, Nishant Kumar wrote: > Hi, > > I am writing a singleton class (Object in scala) which uses apache > httpclient(4.5.2) to send some file or some json content to a server and > return status to caller. Here is my class - > > object HttpUtils{ >

scala: apache httpclient in multi-threaded environment. confusion on correct way of use

2016-11-12 Thread Nishant Kumar
Hi, I am writing a singleton class (Object in scala) which uses apache httpclient(4.5.2) to send some file or some json content to a server and return status to caller. Here is my class - object HttpUtils{ protected val retryHandler = new HttpRequestRetryHandler() { def