public interface WatchCreateRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
WatchCreateRequest.FilterType |
getFilters(int index)
filters filter the events at server side before it sends back to the watcher.
|
int |
getFiltersCount()
filters filter the events at server side before it sends back to the watcher.
|
List<WatchCreateRequest.FilterType> |
getFiltersList()
filters filter the events at server side before it sends back to the watcher.
|
int |
getFiltersValue(int index)
filters filter the events at server side before it sends back to the watcher.
|
List<Integer> |
getFiltersValueList()
filters filter the events at server side before it sends back to the watcher.
|
com.google.protobuf.ByteString |
getKey()
key is the key to register for watching.
|
boolean |
getPrevKv()
If prev_kv is set, created watcher gets the previous KV before the event happens.
|
boolean |
getProgressNotify()
progress_notify is set so that the etcd server will periodically send a WatchResponse with
no events to the new watcher if there are no recent events.
|
com.google.protobuf.ByteString |
getRangeEnd()
range_end is the end of the range [key, range_end) to watch.
|
long |
getStartRevision()
start_revision is an optional revision to watch from (inclusive).
|
long |
getWatchId()
If watch_id is provided and non-zero, it will be assigned to this watcher.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofcom.google.protobuf.ByteString getKey()
key is the key to register for watching.
bytes key = 1;com.google.protobuf.ByteString getRangeEnd()
range_end is the end of the range [key, range_end) to watch. If range_end is not given, only the key argument is watched. If range_end is equal to '\0', all keys greater than or equal to the key argument are watched. If the range_end is one bit larger than the given key, then all keys with the prefix (the given key) will be watched.
bytes range_end = 2;long getStartRevision()
start_revision is an optional revision to watch from (inclusive). No start_revision is "now".
int64 start_revision = 3;boolean getProgressNotify()
progress_notify is set so that the etcd server will periodically send a WatchResponse with no events to the new watcher if there are no recent events. It is useful when clients wish to recover a disconnected watcher starting from a recent known revision. The etcd server may decide how often it will send notifications based on current load.
bool progress_notify = 4;List<WatchCreateRequest.FilterType> getFiltersList()
filters filter the events at server side before it sends back to the watcher.
repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5;int getFiltersCount()
filters filter the events at server side before it sends back to the watcher.
repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5;WatchCreateRequest.FilterType getFilters(int index)
filters filter the events at server side before it sends back to the watcher.
repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5;index - The index of the element to return.List<Integer> getFiltersValueList()
filters filter the events at server side before it sends back to the watcher.
repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5;int getFiltersValue(int index)
filters filter the events at server side before it sends back to the watcher.
repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5;index - The index of the value to return.boolean getPrevKv()
If prev_kv is set, created watcher gets the previous KV before the event happens. If the previous KV is already compacted, nothing will be returned.
bool prev_kv = 6;long getWatchId()
If watch_id is provided and non-zero, it will be assigned to this watcher. Since creating a watcher in etcd is not a synchronous operation, this can be used ensure that ordering is correct when creating multiple watchers on the same stream. Creating a watcher with an ID already in use on the stream will cause an error to be returned.
int64 watch_id = 7;Copyright © 2022. All rights reserved.