| Package | Description |
|---|---|
| io.etcd.jetcd.options |
| Modifier and Type | Method and Description |
|---|---|
WatchOption.Builder |
WatchOption.Builder.isPrefix(boolean prefix)
Enables watch watch all the keys by prefix.
|
static WatchOption.Builder |
WatchOption.newBuilder()
Create a builder to construct option for watch operation.
|
WatchOption.Builder |
WatchOption.Builder.withNoDelete(boolean noDelete)
filter out delete event in server side.
|
WatchOption.Builder |
WatchOption.Builder.withNoPut(boolean noPut)
filter out put event in server side.
|
WatchOption.Builder |
WatchOption.Builder.withPrefix(ByteSequence prefix)
Deprecated.
Use
isPrefix(boolean) instead. |
WatchOption.Builder |
WatchOption.Builder.withPrevKV(boolean prevKV)
When prevKV is set, created watcher gets the previous KV before the event happens,
if the previous KV is not compacted.
|
WatchOption.Builder |
WatchOption.Builder.withProgressNotify(boolean progressNotify)
When progressNotify is set, the watch server send periodic progress updates.
|
WatchOption.Builder |
WatchOption.Builder.withRange(ByteSequence endKey)
Set the end key of the get request.
|
WatchOption.Builder |
WatchOption.Builder.withRequireLeader(boolean requireLeader)
When creating the watch streaming stub, use the REQUIRED_LEADER Metadata annotation,
which ensures the stream will error out if quorum is lost by
the server the stream is connected to.
|
WatchOption.Builder |
WatchOption.Builder.withRevision(long revision)
Provide the revision to use for the get request.
|
Copyright © 2021. All rights reserved.