public static PauseStatus determinePauseStatus(TransferState transferState,
            boolean forceCancel) {

        if (forceCancel) {
            if (transferState == TransferState.Waiting) {
                return PauseStatus.CANCELLED_BEFORE_START;
            } else if (transferState == TransferState.InProgress) {
                return PauseStatus.CANCELLED;
            }
        }
        if (transferState == TransferState.Waiting) {
            return PauseStatus.NOT_STARTED;
        }
        return PauseStatus.NO_EFFECT;
    }
public static PauseStatus determinePauseStatus ( TransferState transferState , boolean forceCancel ) { if ( forceCancel ) { if ( transferState == TransferState . Waiting ) { return PauseStatus . CANCELLED_BEFORE_START ; } else if ( transferState == TransferState . InProgress ) { return PauseStatus . CANCELLED ; } } if ( transferState == TransferState . Waiting ) { return PauseStatus . NOT_STARTED ; } return PauseStatus . NO_EFFECT ; }
Determines the pause status based on the current state of transfer.