Package io.etcd.jetcd

Interface Client

  • All Superinterfaces:
    java.lang.AutoCloseable
    All Known Implementing Classes:
    ClientImpl

    public interface Client
    extends java.lang.AutoCloseable
    Etcd Client.

    The implementation may throw unchecked ConnectException or AuthFailedException on initialization (or when invoking *Client methods if configured to initialize lazily).

    • Method Detail

      • getAuthClient

        Auth getAuthClient()
        Returns the Auth client.
        Returns:
        the client.
      • getKVClient

        KV getKVClient()
        Returns the KV client.
        Returns:
        the client.
      • getClusterClient

        Cluster getClusterClient()
        Returns the Cluster client.
        Returns:
        the client.
      • getMaintenanceClient

        Maintenance getMaintenanceClient()
        Returns the Maintenance client.
        Returns:
        the client.
      • getLeaseClient

        Lease getLeaseClient()
        Returns the Lease client.
        Returns:
        the client.
      • getWatchClient

        Watch getWatchClient()
        Returns the Watch client.
        Returns:
        the client.
      • getLockClient

        Lock getLockClient()
        Returns the Lock client.
        Returns:
        the client.
      • getElectionClient

        Election getElectionClient()
        Returns the Election client.
        Returns:
        the client.
      • close

        void close()
        Specified by:
        close in interface java.lang.AutoCloseable