Package org.apache.pulsar.metadata.api
Interface MetadataEventSynchronizer
public interface MetadataEventSynchronizer
Metadata synchronizer to notify and synchronize metadata change events.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()close synchronizer resources.Name of current cluster served by the Synchronizer.notify(MetadataEvent event) Notify metadata change event.voidRegister notification listener to sync metadata event in local cluster.
-
Method Details
-
notify
Notify metadata change event.- Parameters:
event- metadata change event.- Returns:
-
registerSyncListener
Register notification listener to sync metadata event in local cluster.- Parameters:
event-
-
getClusterName
String getClusterName()Name of current cluster served by the Synchronizer.- Returns:
- clusterName
-
close
void close()close synchronizer resources.
-