Package com.qfs.multiversion
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 Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidafterRelease(V releasedVersion)Called by theIVersionHistorywhen a version is released.default voidbranchCreated(String branch)Called by theIVersionHistorywhen a branch appears for the first time.default voidbranchReleased(String branch)Called by theIVersionHistorywhen a branch is released.default voidonDiscard(V discardedVersion)Called by theIVersionHistorywhen a version is discarded.
-
-
-
Method Detail
-
afterRelease
default void afterRelease(V releasedVersion)
Called by theIVersionHistorywhen a version is released.- Parameters:
releasedVersion- the version that has just been released
-
branchCreated
default void branchCreated(String branch)
Called by theIVersionHistorywhen a branch appears for the first time.Note it can't be called with
IEpoch.MASTER_BRANCH_NAMEas 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 theIVersionHistorywhen a branch is released.Note it can't be called with
IEpoch.MASTER_BRANCH_NAMEas 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 theIVersionHistorywhen a version is discarded.- Parameters:
discardedVersion- the version that is being discarded
-
-