aeron-client/src/main/java/io/aeron/ChannelUriStringBuilder.java
@SuppressWarnings("MethodLength")
    public String build()
    {
        sb.setLength(0);

        if (null != prefix && !"".equals(prefix))
        {
            sb.append(prefix).append(':');
        }

        sb.append(ChannelUri.AERON_SCHEME).append(':').append(media).append('?');

        if (null != tags)
        {
            sb.append(TAGS_PARAM_NAME).append('=').append(tags).append('|');
        }

        if (null != endpoint)
        {
            sb.append(ENDPOINT_PARAM_NAME).append('=').append(endpoint).append('|');
        }

        if (null != networkInterface)
        {
            sb.append(INTERFACE_PARAM_NAME).append('=').append(networkInterface).append('|');
        }

        if (null != controlEndpoint)
        {
            sb.append(MDC_CONTROL_PARAM_NAME).append('=').append(controlEndpoint).append('|');
        }

        if (null != controlMode)
        {
            sb.append(MDC_CONTROL_MODE_PARAM_NAME).append('=').append(controlMode).append('|');
        }

        if (null != mtu)
        {
            sb.append(MTU_LENGTH_PARAM_NAME).append('=').append(mtu.intValue()).append('|');
        }

        if (null != termLength)
        {
            sb.append(TERM_LENGTH_PARAM_NAME).append('=').append(termLength.intValue()).append('|');
        }

        if (null != initialTermId)
        {
            sb.append(INITIAL_TERM_ID_PARAM_NAME).append('=').append(initialTermId.intValue()).append('|');
        }

        if (null != termId)
        {
            sb.append(TERM_ID_PARAM_NAME).append('=').append(termId.intValue()).append('|');
        }

        if (null != termOffset)
        {
            sb.append(TERM_OFFSET_PARAM_NAME).append('=').append(termOffset.intValue()).append('|');
        }

        if (null != sessionId)
        {
            sb.append(SESSION_ID_PARAM_NAME).append('=').append(prefixTag(isSessionIdTagged, sessionId)).append('|');
        }

        if (null != ttl)
        {
            sb.append(TTL_PARAM_NAME).append('=').append(ttl.intValue()).append('|');
        }

        if (null != reliable)
        {
            sb.append(RELIABLE_STREAM_PARAM_NAME).append('=').append(reliable).append('|');
        }

        if (null != linger)
        {
            sb.append(LINGER_PARAM_NAME).append('=').append(linger.intValue()).append('|');
        }

        if (null != alias)
        {
            sb.append(ALIAS_PARAM_NAME).append('=').append(alias).append('|');
        }

        if (null != sparse)
        {
            sb.append(SPARSE_PARAM_NAME).append('=').append(sparse).append('|');
        }

        if (null != eos)
        {
            sb.append(EOS_PARAM_NAME).append('=').append(eos).append('|');
        }

        if (null != tether)
        {
            sb.append(TETHER_PARAM_NAME).append('=').append(tether).append('|');
        }

        final char lastChar = sb.charAt(sb.length() - 1);
        if (lastChar == '|' || lastChar == '?')
        {
            sb.setLength(sb.length() - 1);
        }

        return sb.toString();
    }
@SuppressWarnings("MethodLength")
    public String build()
    {
        sb.setLength(0);

        if (null != prefix && !"".equals(prefix))
        {
            sb.append(prefix).append(':');
        }

        sb.append(ChannelUri.AERON_SCHEME).append(':').append(media).append('?');

        if (null != tags)
        {
            sb.append(TAGS_PARAM_NAME).append('=').append(tags).append('|');
        }

        if (null != endpoint)
        {
            sb.append(ENDPOINT_PARAM_NAME).append('=').append(endpoint).append('|');
        }

        if (null != networkInterface)
        {
            sb.append(INTERFACE_PARAM_NAME).append('=').append(networkInterface).append('|');
        }

        if (null != controlEndpoint)
        {
            sb.append(MDC_CONTROL_PARAM_NAME).append('=').append(controlEndpoint).append('|');
        }

        if (null != controlMode)
        {
            sb.append(MDC_CONTROL_MODE_PARAM_NAME).append('=').append(controlMode).append('|');
        }

        if (null != mtu)
        {
            sb.append(MTU_LENGTH_PARAM_NAME).append('=').append(mtu.intValue()).append('|');
        }

        if (null != termLength)
        {
            sb.append(TERM_LENGTH_PARAM_NAME).append('=').append(termLength.intValue()).append('|');
        }

        if (null != initialTermId)
        {
            sb.append(INITIAL_TERM_ID_PARAM_NAME).append('=').append(initialTermId.intValue()).append('|');
        }

        if (null != termId)
        {
            sb.append(TERM_ID_PARAM_NAME).append('=').append(termId.intValue()).append('|');
        }

        if (null != termOffset)
        {
            sb.append(TERM_OFFSET_PARAM_NAME).append('=').append(termOffset.intValue()).append('|');
        }

        if (null != sessionId)
        {
            sb.append(SESSION_ID_PARAM_NAME).append('=').append(prefixTag(isSessionIdTagged, sessionId)).append('|');
        }

        if (null != ttl)
        {
            sb.append(TTL_PARAM_NAME).append('=').append(ttl.intValue()).append('|');
        }

        if (null != reliable)
        {
            sb.append(RELIABLE_STREAM_PARAM_NAME).append('=').append(reliable).append('|');
        }

        if (null != linger)
        {
            sb.append(LINGER_PARAM_NAME).append('=').append(linger.intValue()).append('|');
        }

        if (null != alias)
        {
            sb.append(ALIAS_PARAM_NAME).append('=').append(alias).append('|');
        }

        if (null != sparse)
        {
            sb.append(SPARSE_PARAM_NAME).append('=').append(sparse).append('|');
        }

        if (null != eos)
        {
            sb.append(EOS_PARAM_NAME).append('=').append(eos).append('|');
        }

        if (null != tether)
        {
            sb.append(TETHER_PARAM_NAME).append('=').append(tether).append('|');
        }

        final char lastChar = sb.charAt(sb.length() - 1);
        if (lastChar == '|' || lastChar == '?')
        {
            sb.setLength(sb.length() - 1);
        }

        return sb.toString();
    }
@ SuppressWarnings ( "MethodLength" ) public String build ( ) { sb . setLength ( 0 ) ; if ( null != prefix && ! "" . equals ( prefix ) ) { sb . append ( prefix ) . append ( ' ' ) ; } sb . append ( ChannelUri . AERON_SCHEME ) . append ( ' ' ) . append ( media ) . append ( ' ' ) ; if ( null != tags ) { sb . append ( TAGS_PARAM_NAME ) . append ( ' ' ) . append ( tags ) . append ( ' ' ) ; } if ( null != endpoint ) { sb . append ( ENDPOINT_PARAM_NAME ) . append ( ' ' ) . append ( endpoint ) . append ( ' ' ) ; } if ( null != networkInterface ) { sb . append ( INTERFACE_PARAM_NAME ) . append ( ' ' ) . append ( networkInterface ) . append ( ' ' ) ; } if ( null != controlEndpoint ) { sb . append ( MDC_CONTROL_PARAM_NAME ) . append ( ' ' ) . append ( controlEndpoint ) . append ( ' ' ) ; } if ( null != controlMode ) { sb . append ( MDC_CONTROL_MODE_PARAM_NAME ) . append ( ' ' ) . append ( controlMode ) . append ( ' ' ) ; } if ( null != mtu ) { sb . append ( MTU_LENGTH_PARAM_NAME ) . append ( ' ' ) . append ( mtu . intValue ( ) ) . append ( ' ' ) ; } if ( null != termLength ) { sb . append ( TERM_LENGTH_PARAM_NAME ) . append ( ' ' ) . append ( termLength . intValue ( ) ) . append ( ' ' ) ; } if ( null != initialTermId ) { sb . append ( INITIAL_TERM_ID_PARAM_NAME ) . append ( ' ' ) . append ( initialTermId . intValue ( ) ) . append ( ' ' ) ; } if ( null != termId ) { sb . append ( TERM_ID_PARAM_NAME ) . append ( ' ' ) . append ( termId . intValue ( ) ) . append ( ' ' ) ; } if ( null != termOffset ) { sb . append ( TERM_OFFSET_PARAM_NAME ) . append ( ' ' ) . append ( termOffset . intValue ( ) ) . append ( ' ' ) ; } if ( null != sessionId ) { sb . append ( SESSION_ID_PARAM_NAME ) . append ( ' ' ) . append ( prefixTag ( isSessionIdTagged , sessionId ) ) . append ( ' ' ) ; } if ( null != ttl ) { sb . append ( TTL_PARAM_NAME ) . append ( ' ' ) . append ( ttl . intValue ( ) ) . append ( ' ' ) ; } if ( null != reliable ) { sb . append ( RELIABLE_STREAM_PARAM_NAME ) . append ( ' ' ) . append ( reliable ) . append ( ' ' ) ; } if ( null != linger ) { sb . append ( LINGER_PARAM_NAME ) . append ( ' ' ) . append ( linger . intValue ( ) ) . append ( ' ' ) ; } if ( null != alias ) { sb . append ( ALIAS_PARAM_NAME ) . append ( ' ' ) . append ( alias ) . append ( ' ' ) ; } if ( null != sparse ) { sb . append ( SPARSE_PARAM_NAME ) . append ( ' ' ) . append ( sparse ) . append ( ' ' ) ; } if ( null != eos ) { sb . append ( EOS_PARAM_NAME ) . append ( ' ' ) . append ( eos ) . append ( ' ' ) ; } if ( null != tether ) { sb . append ( TETHER_PARAM_NAME ) . append ( ' ' ) . append ( tether ) . append ( ' ' ) ; } final char lastChar = sb . charAt ( sb . length ( ) - 1 ) ; if ( lastChar == ' ' || lastChar == ' ' ) { sb . setLength ( sb . length ( ) - 1 ) ; } return sb . toString ( ) ; }
Build a channel URI String for the given parameters.

@return a channel URI String for the given parameters.
Build a channel URI String for the given parameters .