Interface Client

All Superinterfaces:
AutoCloseable, Closeable, ElasticsearchClient, org.elasticsearch.core.Releasable
All Known Implementing Classes:
AbstractClient, FilterClient, NodeClient, OriginSettingClient, ParentTaskAssigningClient, RestCancellableNodeClient, TransportClient

public interface Client extends ElasticsearchClient, org.elasticsearch.core.Releasable
A client provides a one stop interface for performing actions/operations against the cluster.

All operations performed are asynchronous by nature. Each action/operation has two flavors, the first simply returns an ActionFuture, while the second accepts an ActionListener.

A client can either be retrieved from a Node started, or connected remotely to one or more nodes using TransportClient.

See Also:
Node.client(), TransportClient