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
Modifier and TypeMethodDescriptiondefault 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 voidCalled by theIVersionHistorywhen a version is discarded.
-
Method Details
-
afterRelease
Called by theIVersionHistorywhen a version is released.- Parameters:
releasedVersion- the version that has just been released
-
branchCreated
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
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
Called by theIVersionHistorywhen a version is discarded.- Parameters:
discardedVersion- the version that is being discarded
-