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 TypeMethodDescriptionvoidhandleStoreChanged(Store store) voidhandleStoreCreated(Store store) Do NOT try to acquire the lock of store repository again in the implementation, otherwise a dead lock issue will happen.voidhandleStoreDeleted(Store store) voidhandleStoreDeleted(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:StoreDataChangedListenerDo NOT try to acquire the lock of store repository again in the implementation, otherwise a dead lock issue will happen.- Specified by:
handleStoreCreatedin interfaceStoreDataChangedListener
-
handleStoreDeleted
- Specified by:
handleStoreDeletedin interfaceStoreDataChangedListener
-
handleStoreDeleted
- Specified by:
handleStoreDeletedin interfaceStoreDataChangedListener
-
handleStoreChanged
- Specified by:
handleStoreChangedin interfaceStoreDataChangedListener
-