@Override
    public int determineConnectionCount(int downloadId, String url, String path, long totalLength) {
        if (totalLength < ONE_CONNECTION_UPPER_LIMIT) {
            return 1;
        }

        if (totalLength < TWO_CONNECTION_UPPER_LIMIT) {
            return 2;
        }

        if (totalLength < THREE_CONNECTION_UPPER_LIMIT) {
            return 3;
        }

        if (totalLength < FOUR_CONNECTION_UPPER_LIMIT) {
            return 4;
        }

        return 5;
    }
@Override
    public int determineConnectionCount(int downloadId, String url, String path, long totalLength) {
        if (totalLength < ONE_CONNECTION_UPPER_LIMIT) {
            return 1;
        }

        if (totalLength < TWO_CONNECTION_UPPER_LIMIT) {
            return 2;
        }

        if (totalLength < THREE_CONNECTION_UPPER_LIMIT) {
            return 3;
        }

        if (totalLength < FOUR_CONNECTION_UPPER_LIMIT) {
            return 4;
        }

        return 5;
    }
@ Override public int determineConnectionCount ( int downloadId , String url , String path , long totalLength ) { if ( totalLength < ONE_CONNECTION_UPPER_LIMIT ) { return 1 ; } if ( totalLength < TWO_CONNECTION_UPPER_LIMIT ) { return 2 ; } if ( totalLength < THREE_CONNECTION_UPPER_LIMIT ) { return 3 ; } if ( totalLength < FOUR_CONNECTION_UPPER_LIMIT ) { return 4 ; } return 5 ; }
100MB
100MB