From 89919b6bf15f9e236ccf88f5257653ec0d49756d 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 (cherry picked from commit 4198ed2bb8c787d3bccf86a78bcdbdee353cade7) (cherry picked from commit a01f26d06768914d0a5f0ed2981dbbca8b622e2a) --- .../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 8d7743dd791f1..dcd5bfde008f7 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)); }