TransportClient thread safe?

Can one instance of TransportClient be shared across a set of clients threads? For example, if I have several objects which need to index messages to ES, can they share the same TransportClient?

--
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.

To clarify, I see errors in this type of setup. So just wanted to confirm.

On Jun 11, 2013, at 5:41 PM, vinh vinh@loggly.com wrote:

Can one instance of TransportClient be shared across a set of clients threads? For example, if I have several objects which need to index messages to ES, can they share the same TransportClient?

--
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.

Yes. Only one client for the whole jvm. It's threadsafe.

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 12 juin 2013 à 03:44, vinh vinh@loggly.com a écrit :

To clarify, I see errors in this type of setup. So just wanted to confirm.

On Jun 11, 2013, at 5:41 PM, vinh vinh@loggly.com wrote:

Can one instance of TransportClient be shared across a set of clients threads? For example, if I have several objects which need to index messages to ES, can they share the same TransportClient?

--
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.

--
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.