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 longgetEntryId()entryId will be -1 for reading the LAST_ADD_CONFIRMED entry.BookkeeperProtocol.ReadRequest.FlaggetFlag()optional .ReadRequest.Flag flag = 100;longgetLedgerId()required int64 ledgerId = 1;com.google.protobuf.ByteStringgetMasterKey()Used while fencing a ledger.longgetPreviousLAC()Used for waiting on last add confirmed updatelonggetTimeOut()Used as a timeout (in milliseconds) for the long polling requestbooleanhasEntryId()entryId will be -1 for reading the LAST_ADD_CONFIRMED entry.booleanhasFlag()optional .ReadRequest.Flag flag = 100;booleanhasLedgerId()required int64 ledgerId = 1;booleanhasMasterKey()Used while fencing a ledger.booleanhasPreviousLAC()Used for waiting on last add confirmed updatebooleanhasTimeOut()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.
 
 
 - 
 
 -