Hi John, Yes the Java client is meant to be used exactly as you describe; create one instance of IRiakClient and share it across threads. The client itself maintains a connection pool internally so that multiple operations can occur concurrently in different threads.
Thanks, - Roach On Tue, Feb 18, 2014 at 2:02 PM, John Pederzolli <[email protected]> wrote: > Hi - > > I am currently using the PBC implementation of the IRiakClient. Going > through the code, it appears that it is safe to instantiate statically and > share among threads. > > I just wanted to verify if this is the case, or it would be preferable to > instantiate a new client each call. > > Thanks! > > - John > > > _______________________________________________ > riak-users mailing list > [email protected] > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com > _______________________________________________ riak-users mailing list [email protected] http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
