horizonzy commented on code in PR #3361:
URL: https://github.com/apache/bookkeeper/pull/3361#discussion_r915683953
##########
bookkeeper-server/src/main/java/org/apache/bookkeeper/meta/AbstractZkLedgerManager.java:
##########
@@ -154,6 +155,30 @@ private void handleMetadata(Versioned<LedgerMetadata>
result, Throwable exceptio
}
}
+ /**
+ * CancelWatchLedgerMetadataTask class.
+ */
+ protected class CancelWatchLedgerMetadataTask implements Runnable {
+
+ final long ledgerId;
+
+ CancelWatchLedgerMetadataTask(long ledgerId) {
+ this.ledgerId = ledgerId;
+ }
+
+ @Override
+ public void run() {
+ Set<LedgerMetadataListener> listeners =
AbstractZkLedgerManager.this.listeners.get(ledgerId);
Review Comment:
Follow the origin code style. See `ReadLedgerMetadataTask`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]