avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig Landry <craigtlan...@gmail.com>
Subject Client Thread Safety
Date Wed, 20 Jul 2011 20:55:53 GMT
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