Closing the connection when using the native client
43 views
Skip to first unread message
Torbjørn Vatn
unread,
Dec 5, 2014, 10:56:23 AM12/5/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to clojure-el...@googlegroups.com
Hi,
I'm testing out Elastisch and was wondering how one can close the connection gacefully when using the native client?
The reference mentions calling the client.close() method on shutdown, but I couldn't see any corresponding call in the Eleastisch client
Thanks
Torbjørn
Michael Klishin
unread,
Dec 7, 2014, 8:45:03 AM12/7/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Torbjørn Vatn, clojure-el...@googlegroups.com
On 5 December 2014 at 18:56:24, Torbjørn Vatn (torb...@vatn.org) wrote:
> I'm testing out Elastisch and was wondering how one can close
> the connection gacefully when using the native client?
>
> mentions calling the client.close() method on shutdown, but
> I couldn't see any corresponding call in the Eleastisch client
org.elasticsearch.client.FilterClient provides #close, unfortunately,
org.elasticsearch.client.Client (the main interface) does not
include it.
--
@michaelklishin, github.com/michaelklishin
Shay Banon
unread,
Dec 7, 2014, 9:05:24 AM12/7/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to clojure-el...@googlegroups.com, Torbjørn Vatn
The main Client interface does have #close, it extends Releasable (AutoCloseable).
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Shay Banon, clojure-el...@googlegroups.com, Torbjørn Vatn
On 7 December 2014 at 17:05:24, Shay Banon (kim...@gmail.com) wrote:
> The main Client interface does have #close, it extends Releasable
> (AutoCloseable).