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 Details

    • onVersionCreated

      void onVersionCreated(Store store, Version version, boolean isSourceCluster)
    • onVersionDeleted

      void onVersionDeleted(Store store, Version version, boolean isSourceCluster)
    • onVersionBecomingCurrentFromFuture

      void onVersionBecomingCurrentFromFuture(Store store, Version version, boolean isSourceCluster)
    • onVersionBecomingCurrentFromBackup

      void onVersionBecomingCurrentFromBackup(Store store, Version version, boolean isSourceCluster)
    • onVersionBecomingBackup

      void onVersionBecomingBackup(Store store, Version version, boolean isSourceCluster)