Package com.linkedin.davinci.repository
Class StoreDataChangedListenerViewAdapter
java.lang.Object
com.linkedin.davinci.repository.StoreDataChangedListenerViewAdapter
- All Implemented Interfaces:
StoreDataChangedListener
Adapter that provides store data changed listener interface for the store and any subscribed view stores.
-
Constructor Summary
ConstructorsConstructorDescriptionStoreDataChangedListenerViewAdapter
(StoreDataChangedListener storeDataChangedListener, SubscribedViewStoreProvider viewStoreProvider) We need an external provider to provide us the set of subscribed view stores because the passed in Store object after data changed may or may not include all the view stores that were subscribed and expecting the store change event. -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleStoreChanged
(Store store) void
handleStoreCreated
(Store store) Do NOT try to acquire the lock of store repository again in the implementation, otherwise a dead lock issue will happen.void
handleStoreDeleted
(Store store) void
handleStoreDeleted
(String storeName)
-
Constructor Details
-
StoreDataChangedListenerViewAdapter
public StoreDataChangedListenerViewAdapter(StoreDataChangedListener storeDataChangedListener, SubscribedViewStoreProvider viewStoreProvider) We need an external provider to provide us the set of subscribed view stores because the passed in Store object after data changed may or may not include all the view stores that were subscribed and expecting the store change event. e.g. A view that's being deprecated via new version pushes.
-
-
Method Details
-
handleStoreCreated
Description copied from interface:StoreDataChangedListener
Do NOT try to acquire the lock of store repository again in the implementation, otherwise a dead lock issue will happen.- Specified by:
handleStoreCreated
in interfaceStoreDataChangedListener
-
handleStoreDeleted
- Specified by:
handleStoreDeleted
in interfaceStoreDataChangedListener
-
handleStoreDeleted
- Specified by:
handleStoreDeleted
in interfaceStoreDataChangedListener
-
handleStoreChanged
- Specified by:
handleStoreChanged
in interfaceStoreDataChangedListener
-