You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
org.elasticsearch.node.Node and org.elasticsearch.client.Client interfaces should extend Closeable. Doing so will allow user to use Client and Node instances with try-with-resources, IOUtils.closeQuietly, Guava Closer and similar utilities.
This change is backward compatible and doesn't require any changes except adding "extends Closeable" in two places.
The text was updated successfully, but these errors were encountered:
Client, ClusterAdminClient and IndicesAdminClient had corresponding
intermediate `internal` interfaces that are unnecessary and cause
a lot of casting. This commit removes the intermediate interfaces
and uses the super interfaces directly.
This commit also adds Releaseable to `Node` and `Client` in order to
be used with utilities like try / with.
Closes#4355Closes#6517
clintongormley
changed the title
Make Node and Client interfaces Closeable
Internal: Make Node and Client interfaces Closeable
Jul 16, 2014
org.elasticsearch.node.Node and org.elasticsearch.client.Client interfaces should extend Closeable. Doing so will allow user to use Client and Node instances with try-with-resources, IOUtils.closeQuietly, Guava Closer and similar utilities.
This change is backward compatible and doesn't require any changes except adding "extends Closeable" in two places.
The text was updated successfully, but these errors were encountered: