Package com.linkedin.venice.controller
Interface VeniceVersionLifecycleEventListener
public interface VeniceVersionLifecycleEventListener
Listener for lifecycle events of a Venice version.
An instance of this interface is notified when a new version is created or when an existing version is deleted.
The listener methods are called in order with concurrency control enforced by the store level write lock in
HelixVeniceClusterResources. i.e. The system ensures that only one version lifecycle event is active at a
time and guarantees the order of events.
Read-only parameters: All listener methods receive read-only snapshots of the store and version.
Specifically, the framework passes ReadOnlyStore and
ReadOnlyStore.ReadOnlyVersion instances, typed here as Store
and Version for convenience. Do not attempt to mutate these objects; any mutation calls will
either be no-ops or throw exceptions. If a listener needs to perform writes, it must acquire the
appropriate resources and operate on mutable store/version objects outside of these callbacks.-
Method Summary
Modifier and TypeMethodDescriptionvoidonVersionBecomingBackup(Store store, Version version, boolean isSourceCluster) voidonVersionBecomingCurrentFromBackup(Store store, Version version, boolean isSourceCluster) voidonVersionBecomingCurrentFromFuture(Store store, Version version, boolean isSourceCluster) voidonVersionCreated(Store store, Version version, boolean isSourceCluster) voidonVersionDeleted(Store store, Version version, boolean isSourceCluster)
-
Method Details
-
onVersionCreated
-
onVersionDeleted
-
onVersionBecomingCurrentFromFuture
-
onVersionBecomingCurrentFromBackup
-
onVersionBecomingBackup
-