hollow/src/main/java/com/netflix/hollow/api/consumer/metrics/AbstractRefreshMetricsListener.java
@Override
    public final void transitionsPlanned(long beforeVersion, long desiredVersion, boolean isSnapshotPlan, List<HollowConsumer.Blob.BlobType> transitionSequence) {
        updatePlanDetails.beforeVersion = beforeVersion;
        updatePlanDetails.desiredVersion = desiredVersion;
        updatePlanDetails.transitionSequence = transitionSequence;
        if (isSnapshotPlan) {
            overallRefreshType = BlobType.SNAPSHOT;
        } else {
            overallRefreshType = desiredVersion > beforeVersion ? BlobType.DELTA : BlobType.REVERSE_DELTA;
        }
        refreshMetricsBuilder.setOverallRefreshType(overallRefreshType);
    }
@Override
    public final void transitionsPlanned(long beforeVersion, long desiredVersion, boolean isSnapshotPlan, List<HollowConsumer.Blob.BlobType> transitionSequence) {
        updatePlanDetails.beforeVersion = beforeVersion;
        updatePlanDetails.desiredVersion = desiredVersion;
        updatePlanDetails.transitionSequence = transitionSequence;
        if (isSnapshotPlan) {
            overallRefreshType = BlobType.SNAPSHOT;
        } else {
            overallRefreshType = desiredVersion > beforeVersion ? BlobType.DELTA : BlobType.REVERSE_DELTA;
        }
        refreshMetricsBuilder.setOverallRefreshType(overallRefreshType);
    }
@ Override public final void transitionsPlanned ( long beforeVersion , long desiredVersion , boolean isSnapshotPlan , List < HollowConsumer . Blob . BlobType > transitionSequence ) { updatePlanDetails . beforeVersion = beforeVersion ; updatePlanDetails . desiredVersion = desiredVersion ; updatePlanDetails . transitionSequence = transitionSequence ; if ( isSnapshotPlan ) { overallRefreshType = BlobType . SNAPSHOT ; } else { overallRefreshType = desiredVersion > beforeVersion ? BlobType . DELTA : BlobType . REVERSE_DELTA ; } refreshMetricsBuilder . setOverallRefreshType ( overallRefreshType ) ; }
This method acquires details of individual transitions that comprise a larger refresh.
<p>
Details of transitions in a refresh such as count and type can be useful to understand consumer performance and
to troubleshoot issues relating to refresh failure.
</p>
@param beforeVersion The version when refresh started
@param desiredVersion The version that the consumer refresh tries update to, even though it might not be attainable eg. HollowConstants.VERSION_LATEST
@param isSnapshotPlan Indicates whether the refresh involves a snapshot transition
@param transitionSequence List of transitions comprising the refresh
This method acquires details of individual transitions that comprise a larger refresh . <p > Details of transitions in a refresh such as count and type can be useful to understand consumer performance and to troubleshoot issues relating to refresh failure . < / p >