Package org.apache.bookkeeper.proto
Class BookkeeperInternalCallbacks
java.lang.Object
org.apache.bookkeeper.proto.BookkeeperInternalCallbacks
Declaration of a callback interfaces used in bookkeeper client library but
not exposed to the client application.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDeclaration of a callback implementation for calls from BookieClient objects.static interfaceForce callback interface.static classFuture for GetListOfEntriesOfLedger.static interfaceA generic callback interface.static classGeneric callback future.static interfaceThis is a callback interface for fetching metadata about a bookie.static interfaceA callback interface for GetListOfEntriesOfLedger command.static interfaceListener on ledger metadata changes.static classThis is a multi callback object that waits for all of the multiple async operations to complete.static interfaceProcessor to process a specific element.static interfaceDeclaration of a callback implementation for calls from BookieClient objects.static interfaceDeclaration of a callback interface for the Last Add Confirmed context of a reader.static interfaceListener on entries responded.static interfaceA last-add-confirmed (LAC) reader callback interface.static interfaceA callback interface for a STARTTLS command.static classA callback implementation with an internal timer.static interfaceA writer callback interface.static interfaceA last-add-confirmed (LAC) writer callback interface. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> voidfinish(int rc, T result, CompletableFuture<? super T> future) Handle the Response Code and transform it to a BKException.
-
Field Details
-
LOG
static final org.slf4j.Logger LOG
-
-
Constructor Details
-
BookkeeperInternalCallbacks
public BookkeeperInternalCallbacks()
-
-
Method Details
-
finish
Handle the Response Code and transform it to a BKException.- Type Parameters:
T-- Parameters:
rc-result-future-
-