Interface IEpochManager.IVersionLifecycleHandler<V extends IVersion>

All Known Implementing Classes:
DataNodeManager
Enclosing interface:
IEpochManager

public static interface IEpochManager.IVersionLifecycleHandler<V extends IVersion>
Handler containing callbacks for the different events triggered during a version's lifecycle.
  • Method Details

    • afterRelease

      default void afterRelease(V releasedVersion)
      Called by the IVersionHistory when a version is released.
      Parameters:
      releasedVersion - the version that has just been released
    • branchCreated

      default void branchCreated(String branch)
      Called by the IVersionHistory when a branch appears for the first time.

      Note it can't be called with IEpoch.MASTER_BRANCH_NAME as argument (the branch always exists and cannot be deleted).

      Parameters:
      branch - the name of the created branch
    • branchReleased

      default void branchReleased(String branch)
      Called by the IVersionHistory when a branch is released.

      Note it can't be called with IEpoch.MASTER_BRANCH_NAME as argument (by design, the master can't be deleted).

      Parameters:
      branch - the name of the released branch
    • onDiscard

      default void onDiscard(V discardedVersion)
      Called by the IVersionHistory when a version is discarded.
      Parameters:
      discardedVersion - the version that is being discarded