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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getEntryId()
entryId will be -1 for reading the LAST_ADD_CONFIRMED entry.BookkeeperProtocol.ReadRequest.Flag
getFlag()
optional .ReadRequest.Flag flag = 100;
long
getLedgerId()
required int64 ledgerId = 1;
com.google.protobuf.ByteString
getMasterKey()
Used while fencing a ledger.long
getPreviousLAC()
Used for waiting on last add confirmed updatelong
getTimeOut()
Used as a timeout (in milliseconds) for the long polling requestboolean
hasEntryId()
entryId will be -1 for reading the LAST_ADD_CONFIRMED entry.boolean
hasFlag()
optional .ReadRequest.Flag flag = 100;
boolean
hasLedgerId()
required int64 ledgerId = 1;
boolean
hasMasterKey()
Used while fencing a ledger.boolean
hasPreviousLAC()
Used for waiting on last add confirmed updateboolean
hasTimeOut()
Used as a timeout (in milliseconds) for the long polling request-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
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.
-
-