From 4198ed2bb8c787d3bccf86a78bcdbdee353cade7 Mon Sep 17 00:00:00 2001 From: Matteo Merli Date: Tue, 23 Jan 2024 20:51:43 -0800 Subject: [PATCH] [fix] Restored method as deprecated in AbstractMetadataStore (#21950) Co-authored-by: Jiwe Guo --- .../pulsar/metadata/impl/AbstractMetadataStore.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pulsar-metadata/src/main/java/org/apache/pulsar/metadata/impl/AbstractMetadataStore.java b/pulsar-metadata/src/main/java/org/apache/pulsar/metadata/impl/AbstractMetadataStore.java index 9ba2588a07cf0..0a35664391455 100644 --- a/pulsar-metadata/src/main/java/org/apache/pulsar/metadata/impl/AbstractMetadataStore.java +++ b/pulsar-metadata/src/main/java/org/apache/pulsar/metadata/impl/AbstractMetadataStore.java @@ -177,6 +177,14 @@ public CompletableFuture handleMetadataEvent(MetadataEvent event) { return result; } + /** + * @deprecated Use {@link #registerSyncListener(Optional)} instead. + */ + @Deprecated + protected void registerSyncLister(Optional synchronizer) { + this.registerSyncListener(synchronizer); + } + protected void registerSyncListener(Optional synchronizer) { synchronizer.ifPresent(s -> s.registerSyncListener(this::handleMetadataEvent)); }