Package org.apache.bookkeeper.proto
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 TypeMethodDescriptionlongentryId will be -1 for reading the LAST_ADD_CONFIRMED entry.getFlag()optional .ReadRequest.Flag flag = 100;longrequired int64 ledgerId = 1;com.google.protobuf.ByteStringUsed while fencing a ledger.longUsed for waiting on last add confirmed updatelongUsed as a timeout (in milliseconds) for the long polling requestbooleanentryId will be -1 for reading the LAST_ADD_CONFIRMED entry.booleanhasFlag()optional .ReadRequest.Flag flag = 100;booleanrequired int64 ledgerId = 1;booleanUsed while fencing a ledger.booleanUsed for waiting on last add confirmed updatebooleanUsed as a timeout (in milliseconds) for the long polling requestMethods 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
-
hasFlag
boolean hasFlag()optional .ReadRequest.Flag flag = 100;- Returns:
- Whether the flag field is set.
-
getFlag
BookkeeperProtocol.ReadRequest.Flag 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.
-