| Package | Description |
|---|---|
| io.etcd.jetcd | |
| io.etcd.jetcd.auth | |
| io.etcd.jetcd.election | |
| io.etcd.jetcd.kv | |
| io.etcd.jetcd.lease | |
| io.etcd.jetcd.lock | |
| io.etcd.jetcd.op | |
| io.etcd.jetcd.options | |
| io.etcd.jetcd.watch |
| Modifier and Type | Field and Description |
|---|---|
static ByteSequence |
ByteSequence.EMPTY |
static ByteSequence |
ByteSequence.NAMESPACE_DELIMITER |
static ByteSequence |
Constants.NULL_KEY |
| Modifier and Type | Method and Description |
|---|---|
ByteSequence |
ByteSequence.concat(ByteSequence other)
Concatenate the given
ByteSequence to this one. |
static ByteSequence |
ByteSequence.from(byte[] source) |
static ByteSequence |
ByteSequence.from(com.google.protobuf.ByteString source) |
static ByteSequence |
ByteSequence.from(String source,
Charset charset)
Create new ByteSequence from a String.
|
ByteSequence |
KeyValue.getKey() |
ByteSequence |
KeyValue.getValue() |
ByteSequence |
ClientBuilder.namespace() |
ByteSequence |
ClientBuilder.password() |
ByteSequence |
ByteSequence.substring(int beginIndex)
Return the substring from
ByteSequence, inclusive, to the end of the
string. |
ByteSequence |
ByteSequence.substring(int beginIndex,
int endIndex)
Return the substring from
beginIndex, inclusive, to endIndex,
exclusive. |
ByteSequence |
ClientBuilder.user() |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<CampaignResponse> |
Election.campaign(ByteSequence electionName,
long leaseId,
ByteSequence proposal)
Campaign waits to acquire leadership in an election, returning a leader key
representing the leadership if successful.
|
ByteSequence |
ByteSequence.concat(ByteSequence other)
Concatenate the given
ByteSequence to this one. |
CompletableFuture<DeleteResponse> |
KV.delete(ByteSequence key)
delete a key.
|
CompletableFuture<DeleteResponse> |
KV.delete(ByteSequence key,
DeleteOption option)
delete a key or range with option.
|
CompletableFuture<GetResponse> |
KV.get(ByteSequence key)
retrieve value for the given key.
|
CompletableFuture<GetResponse> |
KV.get(ByteSequence key,
GetOption option)
retrieve keys with GetOption.
|
CompletableFuture<LeaderResponse> |
Election.leader(ByteSequence electionName)
Returns the current election proclamation, if any.
|
CompletableFuture<LockResponse> |
Lock.lock(ByteSequence name,
long leaseId)
Acquire a lock with the given name.
|
ClientBuilder |
ClientBuilder.namespace(ByteSequence namespace)
config the namespace of keys used in
KV, Txn, Lock and Watch. |
void |
Election.observe(ByteSequence electionName,
Election.Listener listener)
Listens to election proclamations in-order as made by the election's
elected leaders.
|
ClientBuilder |
ClientBuilder.password(ByteSequence password)
config etcd auth password.
|
static com.google.protobuf.ByteString |
Util.prefixNamespace(com.google.protobuf.ByteString key,
ByteSequence namespace) |
static com.google.protobuf.ByteString |
Util.prefixNamespaceToRangeEnd(com.google.protobuf.ByteString end,
ByteSequence namespace) |
CompletableFuture<ProclaimResponse> |
Election.proclaim(LeaderKey leaderKey,
ByteSequence proposal)
Proclaim updates the leader's posted value with a new value.
|
CompletableFuture<PutResponse> |
KV.put(ByteSequence key,
ByteSequence value)
put a key-value pair into etcd.
|
CompletableFuture<PutResponse> |
KV.put(ByteSequence key,
ByteSequence value,
PutOption option)
put a key-value pair into etcd with option.
|
CompletableFuture<AuthRoleAddResponse> |
Auth.roleAdd(ByteSequence user)
adds a new role to an etcd cluster.
|
CompletableFuture<AuthRoleDeleteResponse> |
Auth.roleDelete(ByteSequence role)
RoleDelete deletes a role.
|
CompletableFuture<AuthRoleGetResponse> |
Auth.roleGet(ByteSequence role)
gets a detailed information of a role.
|
CompletableFuture<AuthRoleGrantPermissionResponse> |
Auth.roleGrantPermission(ByteSequence role,
ByteSequence key,
ByteSequence rangeEnd,
Permission.Type permType)
grants a permission to a role.
|
CompletableFuture<AuthRoleRevokePermissionResponse> |
Auth.roleRevokePermission(ByteSequence role,
ByteSequence key,
ByteSequence rangeEnd)
revokes a permission from a role.
|
boolean |
ByteSequence.startsWith(ByteSequence prefix)
Tests if this
ByteSequence starts with the specified prefix. |
CompletableFuture<UnlockResponse> |
Lock.unlock(ByteSequence lockKey)
Release the lock identified by the given key.
|
static com.google.protobuf.ByteString |
Util.unprefixNamespace(com.google.protobuf.ByteString key,
ByteSequence namespace) |
ClientBuilder |
ClientBuilder.user(ByteSequence user)
config etcd auth user.
|
CompletableFuture<AuthUserAddResponse> |
Auth.userAdd(ByteSequence user,
ByteSequence password)
adds a new user to an etcd cluster.
|
CompletableFuture<AuthUserChangePasswordResponse> |
Auth.userChangePassword(ByteSequence user,
ByteSequence password)
changes a password of a user.
|
CompletableFuture<AuthUserDeleteResponse> |
Auth.userDelete(ByteSequence user)
deletes a user from an etcd cluster.
|
CompletableFuture<AuthUserGetResponse> |
Auth.userGet(ByteSequence user)
gets a detailed information of a user.
|
CompletableFuture<AuthUserGrantRoleResponse> |
Auth.userGrantRole(ByteSequence user,
ByteSequence role)
grants a role to a user.
|
CompletableFuture<AuthUserRevokeRoleResponse> |
Auth.userRevokeRole(ByteSequence user,
ByteSequence role)
revokes a role of a user.
|
default Watch.Watcher |
Watch.watch(ByteSequence key,
Consumer<WatchResponse> onNext) |
default Watch.Watcher |
Watch.watch(ByteSequence key,
Consumer<WatchResponse> onNext,
Consumer<Throwable> onError) |
default Watch.Watcher |
Watch.watch(ByteSequence key,
Consumer<WatchResponse> onNext,
Consumer<Throwable> onError,
Runnable onCompleted) |
default Watch.Watcher |
Watch.watch(ByteSequence key,
Consumer<WatchResponse> onNext,
Runnable onCompleted) |
default Watch.Watcher |
Watch.watch(ByteSequence key,
Watch.Listener listener)
watch on a key.
|
default Watch.Watcher |
Watch.watch(ByteSequence key,
WatchOption option,
Consumer<WatchResponse> onNext) |
default Watch.Watcher |
Watch.watch(ByteSequence key,
WatchOption option,
Consumer<WatchResponse> onNext,
Consumer<Throwable> onError) |
default Watch.Watcher |
Watch.watch(ByteSequence key,
WatchOption option,
Consumer<WatchResponse> onNext,
Consumer<Throwable> onError,
Runnable onCompleted) |
default Watch.Watcher |
Watch.watch(ByteSequence key,
WatchOption option,
Consumer<WatchResponse> onNext,
Runnable onCompleted) |
Watch.Watcher |
Watch.watch(ByteSequence key,
WatchOption option,
Watch.Listener listener)
watch on a key with option.
|
| Constructor and Description |
|---|
KeyValue(KeyValue kv,
ByteSequence namespace) |
| Modifier and Type | Method and Description |
|---|---|
ByteSequence |
Permission.getKey() |
ByteSequence |
Permission.getRangeEnd() |
| Constructor and Description |
|---|
Permission(Permission.Type permType,
ByteSequence key,
ByteSequence rangeEnd) |
| Constructor and Description |
|---|
LeaderResponse(LeaderResponse response,
ByteSequence namespace) |
| Constructor and Description |
|---|
DeleteResponse(DeleteRangeResponse deleteRangeResponse,
ByteSequence namespace) |
GetResponse(RangeResponse rangeResponse,
ByteSequence namespace) |
PutResponse(PutResponse putResponse,
ByteSequence namespace) |
TxnResponse(TxnResponse txnResponse,
ByteSequence namespace) |
| Modifier and Type | Method and Description |
|---|---|
List<ByteSequence> |
LeaseTimeToLiveResponse.getKeys()
Keys is the list of keys attached to this lease.
|
| Modifier and Type | Method and Description |
|---|---|
ByteSequence |
LockResponse.getKey()
key is a key that will exist on etcd for the duration that the Lock caller
owns the lock.
|
| Constructor and Description |
|---|
LockResponse(LockResponse response,
ByteSequence namespace) |
| Modifier and Type | Method and Description |
|---|---|
static Op.DeleteOp |
Op.delete(ByteSequence key,
DeleteOption option) |
static Op.GetOp |
Op.get(ByteSequence key,
GetOption option) |
static TxnImpl |
TxnImpl.newTxn(Function<TxnRequest,CompletableFuture<TxnResponse>> f,
ByteSequence namespace) |
static Op.PutOp |
Op.put(ByteSequence key,
ByteSequence value,
PutOption option) |
static CmpTarget.ValueCmpTarget |
CmpTarget.value(ByteSequence value)
Cmp on the value.
|
| Constructor and Description |
|---|
Cmp(ByteSequence key,
Cmp.Op compareOp,
CmpTarget<?> target) |
| Modifier and Type | Method and Description |
|---|---|
Optional<ByteSequence> |
WatchOption.getEndKey() |
Optional<ByteSequence> |
GetOption.getEndKey() |
Optional<ByteSequence> |
DeleteOption.getEndKey() |
| Modifier and Type | Method and Description |
|---|---|
WatchOption.Builder |
WatchOption.Builder.withPrefix(ByteSequence prefix)
Enables watch all the keys with matching prefix.
|
GetOption.Builder |
GetOption.Builder.withPrefix(ByteSequence prefix)
Enables 'Get' requests to obtain all the keys with matching prefix.
|
DeleteOption.Builder |
DeleteOption.Builder.withPrefix(ByteSequence prefix)
Enables 'Delete' requests to delete all the keys with matching prefix.
|
WatchOption.Builder |
WatchOption.Builder.withRange(ByteSequence endKey)
Set the end key of the get request.
|
GetOption.Builder |
GetOption.Builder.withRange(ByteSequence endKey)
Set the end key of the get request.
|
DeleteOption.Builder |
DeleteOption.Builder.withRange(ByteSequence endKey)
Set the end key of the delete request.
|
| Constructor and Description |
|---|
WatchResponse(WatchResponse response,
ByteSequence namespace) |
Copyright © 2020. All rights reserved.