Interface Meta.WatchCreateRequestOrBuilder

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

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

    Modifier and Type
    Method
    Description
    getEventTypes(int index)
    the event_types than client want to get from coordinator
    int
    the event_types than client want to get from coordinator
    the event_types than client want to get from coordinator
    int
    getEventTypesValue(int index)
    the event_types than client want to get from coordinator
    the event_types than client want to get from coordinator
    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

    • getStartRevision

      long getStartRevision()
       start_revision is an optional revision to watch from (inclusive).
       if start_revision is 0, means watch from "now".
       if start_revision > 0, means watch from start_revision.
       if the caller setup the start_revision, the create may be failed if the start_revision is compacted.
       caller need to check the compact_revision in the response.
       
      int64 start_revision = 1;
      Returns:
      The startRevision.
    • getEventTypesList

      List<Meta.MetaEventType> getEventTypesList()
       the event_types than client want to get from coordinator
       
      repeated .dingodb.pb.meta.MetaEventType event_types = 2;
      Returns:
      A list containing the eventTypes.
    • getEventTypesCount

      int getEventTypesCount()
       the event_types than client want to get from coordinator
       
      repeated .dingodb.pb.meta.MetaEventType event_types = 2;
      Returns:
      The count of eventTypes.
    • getEventTypes

      Meta.MetaEventType getEventTypes(int index)
       the event_types than client want to get from coordinator
       
      repeated .dingodb.pb.meta.MetaEventType event_types = 2;
      Parameters:
      index - The index of the element to return.
      Returns:
      The eventTypes at the given index.
    • getEventTypesValueList

      List<Integer> getEventTypesValueList()
       the event_types than client want to get from coordinator
       
      repeated .dingodb.pb.meta.MetaEventType event_types = 2;
      Returns:
      A list containing the enum numeric values on the wire for eventTypes.
    • getEventTypesValue

      int getEventTypesValue(int index)
       the event_types than client want to get from coordinator
       
      repeated .dingodb.pb.meta.MetaEventType event_types = 2;
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of eventTypes at the given index.
    • getWatchId

      long getWatchId()
       If watch_id is provided and non-zero, it will be assigned to this watcher.
       For Executor, this field can be set to 0 to let coordinator assign a new ID.
       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.