Package io.dingodb.version
Interface Version.OneTimeWatchRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Version.OneTimeWatchRequest,Version.OneTimeWatchRequest.Builder
- Enclosing class:
- Version
public static interface Version.OneTimeWatchRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetFilters(int index) filters filter the events at server side before it sends back to the watcher.intfilters filter the events at server side before it sends back to the watcher.filters filter the events at server side before it sends back to the watcher.intgetFiltersValue(int index) filters filter the events at server side before it sends back to the watcher.filters filter the events at server side before it sends back to the watcher.com.google.protobuf.ByteStringgetKey()key is the key to register for watching.booleanIf prev_kv is set, created watcher gets the previous KV before the event happens.longstart_revision is an optional revision to watch from (inclusive).booleanif the key is not exists, wait_on_not_exists_key is true, the watch will wait until the key is exists if wait_on_not_exist_key is false, and the key is not exists, the watch will return immediatelyMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getKey
com.google.protobuf.ByteString getKey()key is the key to register for watching.
bytes key = 1;- Returns:
- The key.
-
getStartRevision
long getStartRevision()start_revision is an optional revision to watch from (inclusive). No start_revision is "now". if start_revision == 0, watch from now on; if start_revision > 0, watch from the min(start_revision, current_revision)
int64 start_revision = 3;- Returns:
- The startRevision.
-
getFiltersList
List<Version.EventFilterType> getFiltersList()filters filter the events at server side before it sends back to the watcher.
repeated .dingodb.pb.version.EventFilterType filters = 4;- Returns:
- A list containing the filters.
-
getFiltersCount
int getFiltersCount()filters filter the events at server side before it sends back to the watcher.
repeated .dingodb.pb.version.EventFilterType filters = 4;- Returns:
- The count of filters.
-
getFilters
filters filter the events at server side before it sends back to the watcher.
repeated .dingodb.pb.version.EventFilterType filters = 4;- Parameters:
index- The index of the element to return.- Returns:
- The filters at the given index.
-
getFiltersValueList
filters filter the events at server side before it sends back to the watcher.
repeated .dingodb.pb.version.EventFilterType filters = 4;- Returns:
- A list containing the enum numeric values on the wire for filters.
-
getFiltersValue
int getFiltersValue(int index) filters filter the events at server side before it sends back to the watcher.
repeated .dingodb.pb.version.EventFilterType filters = 4;- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of filters at the given index.
-
getNeedPrevKv
boolean getNeedPrevKv()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 need_prev_kv = 5;- Returns:
- The needPrevKv.
-
getWaitOnNotExistKey
boolean getWaitOnNotExistKey()if the key is not exists, wait_on_not_exists_key is true, the watch will wait until the key is exists if wait_on_not_exist_key is false, and the key is not exists, the watch will return immediately
bool wait_on_not_exist_key = 6;- Returns:
- The waitOnNotExistKey.
-