Package org.apache.bookkeeper.proto
Class ReadLastConfirmedAndEntryContext
- java.lang.Object
-
- org.apache.bookkeeper.proto.ReadLastConfirmedAndEntryContext
-
- All Implemented Interfaces:
BookkeeperInternalCallbacks.ReadEntryCallbackCtx
public class ReadLastConfirmedAndEntryContext extends java.lang.Object implements BookkeeperInternalCallbacks.ReadEntryCallbackCtx
ABookkeeperInternalCallbacks.ReadEntryCallbackCtx
for long poll read requests.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) BookieId
bookie
(package private) int
bookieIndex
(package private) long
lac
(package private) java.util.Optional<java.lang.Long>
lacUpdateTimestamp
-
Constructor Summary
Constructors Constructor Description ReadLastConfirmedAndEntryContext(int bookieIndex, BookieId bookie)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BookieId
getBookieAddress()
int
getBookieIndex()
java.util.Optional<java.lang.Long>
getLacUpdateTimestamp()
long
getLastAddConfirmed()
void
setLacUpdateTimestamp(long lacUpdateTimestamp)
void
setLastAddConfirmed(long lac)
-
-
-
Field Detail
-
bookieIndex
final int bookieIndex
-
bookie
final BookieId bookie
-
lac
long lac
-
lacUpdateTimestamp
java.util.Optional<java.lang.Long> lacUpdateTimestamp
-
-
Constructor Detail
-
ReadLastConfirmedAndEntryContext
public ReadLastConfirmedAndEntryContext(int bookieIndex, BookieId bookie)
-
-
Method Detail
-
getBookieIndex
public int getBookieIndex()
-
getBookieAddress
public BookieId getBookieAddress()
-
setLastAddConfirmed
public void setLastAddConfirmed(long lac)
- Specified by:
setLastAddConfirmed
in interfaceBookkeeperInternalCallbacks.ReadEntryCallbackCtx
-
getLastAddConfirmed
public long getLastAddConfirmed()
- Specified by:
getLastAddConfirmed
in interfaceBookkeeperInternalCallbacks.ReadEntryCallbackCtx
-
getLacUpdateTimestamp
public java.util.Optional<java.lang.Long> getLacUpdateTimestamp()
-
setLacUpdateTimestamp
public void setLacUpdateTimestamp(long lacUpdateTimestamp)
-
-