Interface ManagedLedgerInterceptor
-
@LimitedPrivate @Stable public interface ManagedLedgerInterceptorInterceptor for ManagedLedger.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OpAddEntrybeforeAddEntry(OpAddEntry op, int numberOfMessages)Intercept an OpAddEntry and return an OpAddEntry.java.util.concurrent.CompletableFuture<java.lang.Void>onManagedLedgerLastLedgerInitialize(java.lang.String name, org.apache.bookkeeper.client.LedgerHandle ledgerHandle)Intercept when ManagedLedger is initialized.voidonManagedLedgerPropertiesInitialize(java.util.Map<java.lang.String,java.lang.String> propertiesMap)Intercept when ManagedLedger is initialized.voidonUpdateManagedLedgerInfo(java.util.Map<java.lang.String,java.lang.String> propertiesMap)
-
-
-
Method Detail
-
beforeAddEntry
OpAddEntry beforeAddEntry(OpAddEntry op, int numberOfMessages)
Intercept an OpAddEntry and return an OpAddEntry.- Parameters:
op- an OpAddEntry to be intercepted.numberOfMessages-- Returns:
- an OpAddEntry.
-
onManagedLedgerPropertiesInitialize
void onManagedLedgerPropertiesInitialize(java.util.Map<java.lang.String,java.lang.String> propertiesMap)
Intercept when ManagedLedger is initialized.- Parameters:
propertiesMap- map of properties.
-
onManagedLedgerLastLedgerInitialize
java.util.concurrent.CompletableFuture<java.lang.Void> onManagedLedgerLastLedgerInitialize(java.lang.String name, org.apache.bookkeeper.client.LedgerHandle ledgerHandle)Intercept when ManagedLedger is initialized.- Parameters:
name- name of ManagedLedgerledgerHandle- a LedgerHandle.
-
onUpdateManagedLedgerInfo
void onUpdateManagedLedgerInfo(java.util.Map<java.lang.String,java.lang.String> propertiesMap)
- Parameters:
propertiesMap- map of properties.
-
-