Interface MinaEndpointBuilderFactory.MinaEndpointProducerBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder
,org.apache.camel.EndpointProducerResolver
- All Known Subinterfaces:
MinaEndpointBuilderFactory.MinaEndpointBuilder
- Enclosing interface:
- MinaEndpointBuilderFactory
public static interface MinaEndpointBuilderFactory.MinaEndpointProducerBuilder extends org.apache.camel.builder.EndpointProducerBuilder
Builder for endpoint producers for the Mina component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default MinaEndpointBuilderFactory.AdvancedMinaEndpointProducerBuilder
advanced()
default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder
allowDefaultCodec(boolean allowDefaultCodec)
The mina component installs a default codec if both, codec is null and textline is false.default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder
allowDefaultCodec(String allowDefaultCodec)
The mina component installs a default codec if both, codec is null and textline is false.default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder
autoStartTls(boolean autoStartTls)
Whether to auto start SSL handshake.default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder
autoStartTls(String autoStartTls)
Whether to auto start SSL handshake.default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder
codec(Object codec)
To use a custom minda codec implementation.default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder
codec(String codec)
To use a custom minda codec implementation.default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder
decoderMaxLineLength(int decoderMaxLineLength)
To set the textline protocol decoder max line length.default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder
decoderMaxLineLength(String decoderMaxLineLength)
To set the textline protocol decoder max line length.default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder
disconnect(boolean disconnect)
Whether or not to disconnect(close) from Mina session right after use.default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder
disconnect(String disconnect)
Whether or not to disconnect(close) from Mina session right after use.default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder
encoderMaxLineLength(int encoderMaxLineLength)
To set the textline protocol encoder max line length.default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder
encoderMaxLineLength(String encoderMaxLineLength)
To set the textline protocol encoder max line length.default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder
encoding(String encoding)
You can configure the encoding (a charset name) to use for the TCP textline codec and the UDP protocol.default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder
filters(String filters)
You can set a list of Mina IoFilters to use.default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder
filters(List<Object> filters)
You can set a list of Mina IoFilters to use.default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder
lazyStartProducer(boolean lazyStartProducer)
Whether the producer should be started lazy (on the first message).default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder
lazyStartProducer(String lazyStartProducer)
Whether the producer should be started lazy (on the first message).default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder
minaLogger(boolean minaLogger)
You can enable the Apache MINA logging filter.default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder
minaLogger(String minaLogger)
You can enable the Apache MINA logging filter.default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder
sslContextParameters(Object sslContextParameters)
To configure SSL security.default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder
sslContextParameters(String sslContextParameters)
To configure SSL security.default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder
sync(boolean sync)
Setting to set endpoint as one-way or request-response.default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder
sync(String sync)
Setting to set endpoint as one-way or request-response.default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder
textline(boolean textline)
Only used for TCP.default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder
textline(String textline)
Only used for TCP.default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder
textlineDelimiter(String textlineDelimiter)
Only used for TCP and if textline=true.default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder
textlineDelimiter(MinaEndpointBuilderFactory.MinaTextLineDelimiter textlineDelimiter)
Only used for TCP and if textline=true.default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder
timeout(long timeout)
You can configure the timeout that specifies how long to wait for a response from a remote server.default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder
timeout(String timeout)
You can configure the timeout that specifies how long to wait for a response from a remote server.default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder
writeTimeout(long writeTimeout)
Maximum amount of time it should take to send data to the MINA session.default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder
writeTimeout(String writeTimeout)
Maximum amount of time it should take to send data to the MINA session.
-
-
-
Method Detail
-
advanced
default MinaEndpointBuilderFactory.AdvancedMinaEndpointProducerBuilder advanced()
-
disconnect
default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder 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.MinaEndpointProducerBuilder 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 aboolean
type. Default: false Group: common
-
minaLogger
default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder 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.MinaEndpointProducerBuilder 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 aboolean
type. Default: false Group: common
-
sync
default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder sync(boolean sync)
Setting to set endpoint as one-way or request-response. The option is a:boolean
type. Default: true Group: common
-
sync
default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder sync(String sync)
Setting to set endpoint as one-way or request-response. The option will be converted to aboolean
type. Default: true Group: common
-
timeout
default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder 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.MinaEndpointProducerBuilder 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 along
type. Default: 30000 Group: common
-
writeTimeout
default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder 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
-
writeTimeout
default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder writeTimeout(String writeTimeout)
Maximum amount of time it should take to send data to the MINA session. Default is 10000 milliseconds. The option will be converted to along
type. Default: 10000 Group: common
-
lazyStartProducer
default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder lazyStartProducer(boolean lazyStartProducer)
Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. The option is a:boolean
type. Default: false Group: producer
-
lazyStartProducer
default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder lazyStartProducer(String lazyStartProducer)
Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. The option will be converted to aboolean
type. Default: false Group: producer
-
allowDefaultCodec
default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder 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.MinaEndpointProducerBuilder 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 aboolean
type. Default: true Group: codec
-
codec
default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder codec(Object codec)
To use a custom minda codec implementation. The option is a:org.apache.mina.filter.codec.ProtocolCodecFactory
type. Group: codec
-
codec
default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder codec(String codec)
To use a custom minda codec implementation. The option will be converted to aorg.apache.mina.filter.codec.ProtocolCodecFactory
type. Group: codec
-
decoderMaxLineLength
default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder 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.MinaEndpointProducerBuilder 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 aint
type. Default: 1024 Group: codec
-
encoderMaxLineLength
default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder 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.MinaEndpointProducerBuilder 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 aint
type. Default: -1 Group: codec
-
encoding
default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder 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
-
filters
default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder filters(List<Object> filters)
You can set a list of Mina IoFilters to use. The option is a:java.util.List<org.apache.mina.core.filterchain.IoFilter>
type. Group: codec
-
filters
default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder filters(String filters)
You can set a list of Mina IoFilters to use. The option will be converted to ajava.util.List<org.apache.mina.core.filterchain.IoFilter>
type. Group: codec
-
textline
default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder 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.MinaEndpointProducerBuilder 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 aboolean
type. Default: false Group: codec
-
textlineDelimiter
default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder textlineDelimiter(MinaEndpointBuilderFactory.MinaTextLineDelimiter 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 is a:org.apache.camel.component.mina.MinaTextLineDelimiter
type. Group: codec
-
textlineDelimiter
default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder 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 aorg.apache.camel.component.mina.MinaTextLineDelimiter
type. Group: codec
-
autoStartTls
default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder autoStartTls(boolean autoStartTls)
Whether to auto start SSL handshake. The option is a:boolean
type. Default: true Group: security
-
autoStartTls
default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder autoStartTls(String autoStartTls)
Whether to auto start SSL handshake. The option will be converted to aboolean
type. Default: true Group: security
-
sslContextParameters
default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder sslContextParameters(Object sslContextParameters)
To configure SSL security. The option is a:org.apache.camel.support.jsse.SSLContextParameters
type. Group: security
-
sslContextParameters
default MinaEndpointBuilderFactory.MinaEndpointProducerBuilder sslContextParameters(String sslContextParameters)
To configure SSL security. The option will be converted to aorg.apache.camel.support.jsse.SSLContextParameters
type. Group: security
-
-