Interface MinaEndpointBuilderFactory.MinaEndpointConsumerBuilder

  • All Superinterfaces:
    org.apache.camel.builder.EndpointConsumerBuilder, org.apache.camel.EndpointConsumerResolver
    All Known Subinterfaces:
    MinaEndpointBuilderFactory.MinaEndpointBuilder
    Enclosing interface:
    MinaEndpointBuilderFactory

    public static interface MinaEndpointBuilderFactory.MinaEndpointConsumerBuilder
    extends org.apache.camel.builder.EndpointConsumerBuilder
    Builder for endpoint consumers for the Mina component.
    • Method Detail

      • disconnect

        default MinaEndpointBuilderFactory.MinaEndpointConsumerBuilder disconnect​(boolean disconnect)
        Whether or not to disconnect(close) from Mina session right after use. Can be used for both consumer and producer. The option is a: boolean type. Default: false Group: common
      • disconnect

        default MinaEndpointBuilderFactory.MinaEndpointConsumerBuilder disconnect​(String disconnect)
        Whether or not to disconnect(close) from Mina session right after use. Can be used for both consumer and producer. The option will be converted to a boolean type. Default: false Group: common
      • minaLogger

        default MinaEndpointBuilderFactory.MinaEndpointConsumerBuilder minaLogger​(boolean minaLogger)
        You can enable the Apache MINA logging filter. Apache MINA uses slf4j logging at INFO level to log all input and output. The option is a: boolean type. Default: false Group: common
      • minaLogger

        default MinaEndpointBuilderFactory.MinaEndpointConsumerBuilder minaLogger​(String minaLogger)
        You can enable the Apache MINA logging filter. Apache MINA uses slf4j logging at INFO level to log all input and output. The option will be converted to a boolean type. Default: false Group: common
      • timeout

        default MinaEndpointBuilderFactory.MinaEndpointConsumerBuilder timeout​(long timeout)
        You can configure the timeout that specifies how long to wait for a response from a remote server. The timeout unit is in milliseconds, so 60000 is 60 seconds. The option is a: long type. Default: 30000 Group: common
      • timeout

        default MinaEndpointBuilderFactory.MinaEndpointConsumerBuilder timeout​(String timeout)
        You can configure the timeout that specifies how long to wait for a response from a remote server. The timeout unit is in milliseconds, so 60000 is 60 seconds. The option will be converted to a long type. Default: 30000 Group: common
      • writeTimeout

        default MinaEndpointBuilderFactory.MinaEndpointConsumerBuilder writeTimeout​(long writeTimeout)
        Maximum amount of time it should take to send data to the MINA session. Default is 10000 milliseconds. The option is a: long type. Default: 10000 Group: common
      • bridgeErrorHandler

        default MinaEndpointBuilderFactory.MinaEndpointConsumerBuilder bridgeErrorHandler​(boolean bridgeErrorHandler)
        Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option is a: boolean type. Default: false Group: consumer
      • bridgeErrorHandler

        default MinaEndpointBuilderFactory.MinaEndpointConsumerBuilder bridgeErrorHandler​(String bridgeErrorHandler)
        Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option will be converted to a boolean type. Default: false Group: consumer
      • allowDefaultCodec

        default MinaEndpointBuilderFactory.MinaEndpointConsumerBuilder allowDefaultCodec​(boolean allowDefaultCodec)
        The mina component installs a default codec if both, codec is null and textline is false. Setting allowDefaultCodec to false prevents the mina component from installing a default codec as the first element in the filter chain. This is useful in scenarios where another filter must be the first in the filter chain, like the SSL filter. The option is a: boolean type. Default: true Group: codec
      • allowDefaultCodec

        default MinaEndpointBuilderFactory.MinaEndpointConsumerBuilder allowDefaultCodec​(String allowDefaultCodec)
        The mina component installs a default codec if both, codec is null and textline is false. Setting allowDefaultCodec to false prevents the mina component from installing a default codec as the first element in the filter chain. This is useful in scenarios where another filter must be the first in the filter chain, like the SSL filter. The option will be converted to a boolean type. Default: true Group: codec
      • decoderMaxLineLength

        default MinaEndpointBuilderFactory.MinaEndpointConsumerBuilder decoderMaxLineLength​(int decoderMaxLineLength)
        To set the textline protocol decoder max line length. By default the default value of Mina itself is used which are 1024. The option is a: int type. Default: 1024 Group: codec
      • decoderMaxLineLength

        default MinaEndpointBuilderFactory.MinaEndpointConsumerBuilder decoderMaxLineLength​(String decoderMaxLineLength)
        To set the textline protocol decoder max line length. By default the default value of Mina itself is used which are 1024. The option will be converted to a int type. Default: 1024 Group: codec
      • encoderMaxLineLength

        default MinaEndpointBuilderFactory.MinaEndpointConsumerBuilder encoderMaxLineLength​(int encoderMaxLineLength)
        To set the textline protocol encoder max line length. By default the default value of Mina itself is used which are Integer.MAX_VALUE. The option is a: int type. Default: -1 Group: codec
      • encoderMaxLineLength

        default MinaEndpointBuilderFactory.MinaEndpointConsumerBuilder encoderMaxLineLength​(String encoderMaxLineLength)
        To set the textline protocol encoder max line length. By default the default value of Mina itself is used which are Integer.MAX_VALUE. The option will be converted to a int type. Default: -1 Group: codec
      • encoding

        default MinaEndpointBuilderFactory.MinaEndpointConsumerBuilder encoding​(String encoding)
        You can configure the encoding (a charset name) to use for the TCP textline codec and the UDP protocol. If not provided, Camel will use the JVM default Charset. The option is a: java.lang.String type. Group: codec
      • textline

        default MinaEndpointBuilderFactory.MinaEndpointConsumerBuilder textline​(boolean textline)
        Only used for TCP. If no codec is specified, you can use this flag to indicate a text line based codec; if not specified or the value is false, then Object Serialization is assumed over TCP. The option is a: boolean type. Default: false Group: codec
      • textline

        default MinaEndpointBuilderFactory.MinaEndpointConsumerBuilder textline​(String textline)
        Only used for TCP. If no codec is specified, you can use this flag to indicate a text line based codec; if not specified or the value is false, then Object Serialization is assumed over TCP. The option will be converted to a boolean type. Default: false Group: codec
      • textlineDelimiter

        default MinaEndpointBuilderFactory.MinaEndpointConsumerBuilder textlineDelimiter​(String textlineDelimiter)
        Only used for TCP and if textline=true. Sets the text line delimiter to use. If none provided, Camel will use DEFAULT. This delimiter is used to mark the end of text. The option will be converted to a org.apache.camel.component.mina.MinaTextLineDelimiter type. Group: codec