Interface BookkeeperProtocol.ReadRequestOrBuilder

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

public static interface BookkeeperProtocol.ReadRequestOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    entryId will be -1 for reading the LAST_ADD_CONFIRMED entry.
    optional .ReadRequest.Flag flag = 100;
    long
    required int64 ledgerId = 1;
    com.google.protobuf.ByteString
    Used while fencing a ledger.
    long
    Used for waiting on last add confirmed update
    long
    Used as a timeout (in milliseconds) for the long polling request
    boolean
    entryId will be -1 for reading the LAST_ADD_CONFIRMED entry.
    boolean
    optional .ReadRequest.Flag flag = 100;
    boolean
    required int64 ledgerId = 1;
    boolean
    Used while fencing a ledger.
    boolean
    Used for waiting on last add confirmed update
    boolean
    Used as a timeout (in milliseconds) for the long polling request

    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

    • hasFlag

      boolean hasFlag()
      optional .ReadRequest.Flag flag = 100;
      Returns:
      Whether the flag field is set.
    • getFlag

      optional .ReadRequest.Flag flag = 100;
      Returns:
      The flag.
    • hasLedgerId

      boolean hasLedgerId()
      required int64 ledgerId = 1;
      Returns:
      Whether the ledgerId field is set.
    • getLedgerId

      long getLedgerId()
      required int64 ledgerId = 1;
      Returns:
      The ledgerId.
    • hasEntryId

      boolean hasEntryId()
       entryId will be -1 for reading the LAST_ADD_CONFIRMED entry.
       
      required int64 entryId = 2;
      Returns:
      Whether the entryId field is set.
    • getEntryId

      long getEntryId()
       entryId will be -1 for reading the LAST_ADD_CONFIRMED entry.
       
      required int64 entryId = 2;
      Returns:
      The entryId.
    • hasMasterKey

      boolean hasMasterKey()
       Used while fencing a ledger.
       
      optional bytes masterKey = 3;
      Returns:
      Whether the masterKey field is set.
    • getMasterKey

      com.google.protobuf.ByteString getMasterKey()
       Used while fencing a ledger.
       
      optional bytes masterKey = 3;
      Returns:
      The masterKey.
    • hasPreviousLAC

      boolean hasPreviousLAC()
       Used for waiting on last add confirmed update
       
      optional int64 previousLAC = 4;
      Returns:
      Whether the previousLAC field is set.
    • getPreviousLAC

      long getPreviousLAC()
       Used for waiting on last add confirmed update
       
      optional int64 previousLAC = 4;
      Returns:
      The previousLAC.
    • hasTimeOut

      boolean hasTimeOut()
       Used as a timeout (in milliseconds) for the long polling request
       
      optional int64 timeOut = 5;
      Returns:
      Whether the timeOut field is set.
    • getTimeOut

      long getTimeOut()
       Used as a timeout (in milliseconds) for the long polling request
       
      optional int64 timeOut = 5;
      Returns:
      The timeOut.