Package io.etcd.jetcd
Interface Client
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
ClientImpl
Etcd Client.
The implementation may throw unchecked ConnectException or AuthFailedException on initialization (or when invoking *Client methods if configured to initialize lazily).
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClientBuilderbuilder()Returns a newClientBuilder.voidclose()Returns theAuthclient.Returns theClusterclient.Returns theElectionclient.Returns theKVclient.Returns theLeaseclient.Returns theLockclient.Returns theMaintenanceclient.Returns theWatchclient.
-
Method Details
-
getAuthClient
Auth getAuthClient()Returns theAuthclient.- Returns:
- the client.
-
getKVClient
KV getKVClient()Returns theKVclient.- Returns:
- the client.
-
getClusterClient
Cluster getClusterClient()Returns theClusterclient.- Returns:
- the client.
-
getMaintenanceClient
Maintenance getMaintenanceClient()Returns theMaintenanceclient.- Returns:
- the client.
-
getLeaseClient
Lease getLeaseClient()Returns theLeaseclient.- Returns:
- the client.
-
getWatchClient
Watch getWatchClient()Returns theWatchclient.- Returns:
- the client.
-
getLockClient
Lock getLockClient()Returns theLockclient.- Returns:
- the client.
-
getElectionClient
Election getElectionClient()Returns theElectionclient.- Returns:
- the client.
-
close
void close()- Specified by:
closein interfaceAutoCloseable
-
builder
Returns a newClientBuilder.- Returns:
- the builder.
-