Java API, is a client thread safe?

Is ES client got vianodeBuilder.client(true).clusterName(clusterName).node().client()thread
safe (execution listeners are in use)? Can I have the only client for given
cluster and given JVM? Is the client guarded against execution exceptions
(that is the instance is kept intact on execution exceptions)? Is anybody
using client caching (pooling)?

Or, all these questions can be folded into this one: is the client
stateless? :slight_smile:

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Yeah. Only one client for the whole JVM.

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 5 juin 2013 à 22:23, Andrew Gaydenko andrew.gaydenko@gmail.com a écrit :

Is ES client got via nodeBuilder.client(true).clusterName(clusterName).node().client()thread safe (execution listeners are in use)? Can I have the only client for given cluster and given JVM? Is the client guarded against execution exceptions (that is the instance is kept intact on execution exceptions)? Is anybody using client caching (pooling)?

Or, all these questions can be folded into this one: is the client stateless? :slight_smile:

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

On Thursday, June 6, 2013 12:24:56 AM UTC+4, David Pilato wrote:

Yeah. Only one client for the whole JVM.

Great, thanks! It's the proper way :slight_smile:

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.