avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: Client Thread Safety
Date Tue, 06 Sep 2011 22:44:48 GMT
Yes, the IPC client code should be thread-safe.  If you find it is not,
please submit a bug report.

Thanks,

Doug

On 07/20/2011 01:55 PM, Craig Landry wrote:
> Are HttpTransceiver and the object created from
> SpecificRequestor.getClient() threadsafe?
> 
> Here's an example of what I am trying to do in my client to
> communicate with the service (hosted from Tomcat):
> HttpTransceiver client = new HttpTransceiver(new
> URL("http://user.sample.com/service"));
> UserService userService =
> SpecificRequestor.getClient(UserService.class, client);
> 
> I would like to be able to have multiple concurrent threads using the
> "userService" object.  Is that safe to do?

Mime
View raw message