Interface Version.WatchCreateRequestOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Version.WatchCreateRequest, Version.WatchCreateRequest.Builder
Enclosing class:
Version

public static interface Version.WatchCreateRequestOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    getFilters(int index)
    filters filter the events at server side before it sends back to the watcher.
    int
    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.
    int
    getFiltersValue(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.
    boolean
    fragment enables splitting large revisions into multiple watch responses.
    com.google.protobuf.ByteString
    key is the key to register for watching.
    boolean
    If prev_kv is set, created watcher gets the previous KV before the event happens.
    boolean
    progress_notify is set so that the coordinator server will periodically send a WatchResponse with no events to the new watcher if there are no recent events.
    com.google.protobuf.ByteString
    range_end is the end of the range [key, range_end) to watch.
    long
    start_revision is an optional revision to watch from (inclusive).
    long
    If watch_id is provided and non-zero, it will be assigned to this watcher.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods 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.
    • getRangeEnd

      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;
      Returns:
      The rangeEnd.
    • getStartRevision

      long getStartRevision()
       start_revision is an optional revision to watch from (inclusive). No start_revision is "now".
       
      int64 start_revision = 3;
      Returns:
      The startRevision.
    • getProgressNotify

      boolean getProgressNotify()
       progress_notify is set so that the coordinator 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 coordinator server may decide how often it will send notifications based on current load.
       
      bool progress_notify = 4;
      Returns:
      The progressNotify.
    • 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 = 5;
      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 = 5;
      Returns:
      The count of filters.
    • getFilters

      Version.EventFilterType getFilters(int index)
       filters filter the events at server side before it sends back to the watcher.
       
      repeated .dingodb.pb.version.EventFilterType filters = 5;
      Parameters:
      index - The index of the element to return.
      Returns:
      The filters at the given index.
    • getFiltersValueList

      List<Integer> getFiltersValueList()
       filters filter the events at server side before it sends back to the watcher.
       
      repeated .dingodb.pb.version.EventFilterType filters = 5;
      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 = 5;
      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 = 6;
      Returns:
      The needPrevKv.
    • getWatchId

      long getWatchId()
       If watch_id is provided and non-zero, it will be assigned to this watcher.
       Since creating a watcher in coordinator 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;
      Returns:
      The watchId.
    • getFragment

      boolean getFragment()
       fragment enables splitting large revisions into multiple watch responses.
       
      bool fragment = 8;
      Returns:
      The fragment.