Interface ListenableMetadataStore
- All Superinterfaces:
ConcurrentMetadataStore,MetadataStore
- All Known Implementing Classes:
HazelcastMetadataStore,ZookeeperMetadataStore
ConcurrentMetadataStore with the ability of registering MetadataStoreListener callbacks, to be
invoked when changes occur in the metadata store.- Since:
- 4.2
- Author:
- Marius Bogoevici
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(MetadataStoreListener callback) Register a listener with the metadata store.voidremoveListener(MetadataStoreListener callback) Unregister a listener.Methods inherited from interface org.springframework.integration.metadata.ConcurrentMetadataStore
putIfAbsent, replaceMethods inherited from interface org.springframework.integration.metadata.MetadataStore
get, put, remove
-
Method Details
-
addListener
Register a listener with the metadata store.- Parameters:
callback- the callback to be registered
-
removeListener
Unregister a listener.- Parameters:
callback- the callback to be unregistered
-