Interface NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointBuilder
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder,org.apache.camel.EndpointConsumerResolver,org.apache.camel.builder.EndpointProducerBuilder,org.apache.camel.EndpointProducerResolver,NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder,NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder
- Enclosing interface:
- NettyHttpEndpointBuilderFactory
public static interface NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointBuilder
extends NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder, NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder
Advanced builder for endpoint for the Netty HTTP component.
-
Method Summary
Modifier and TypeMethodDescriptionallowSerializedHeaders(boolean allowSerializedHeaders) Only used for TCP when transferExchange is true.allowSerializedHeaders(String allowSerializedHeaders) Only used for TCP when transferExchange is true.basic()channelGroup(io.netty.channel.group.ChannelGroup channelGroup) To use a explicit ChannelGroup.channelGroup(String channelGroup) To use a explicit ChannelGroup.configuration(String configuration) To use a custom configured NettyHttpConfiguration for configuring this endpoint.configuration(org.apache.camel.component.netty.http.NettyHttpConfiguration configuration) To use a custom configured NettyHttpConfiguration for configuring this endpoint.disableStreamCache(boolean disableStreamCache) Determines whether or not the raw input stream from Netty HttpRequest#getContent() or HttpResponset#getContent() is cached or not (Camel will read the stream into a in light-weight memory based Stream caching) cache.disableStreamCache(String disableStreamCache) Determines whether or not the raw input stream from Netty HttpRequest#getContent() or HttpResponset#getContent() is cached or not (Camel will read the stream into a in light-weight memory based Stream caching) cache.headerFilterStrategy(String headerFilterStrategy) To use a custom org.apache.camel.spi.HeaderFilterStrategy to filter headers.headerFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy) To use a custom org.apache.camel.spi.HeaderFilterStrategy to filter headers.nativeTransport(boolean nativeTransport) Whether to use native transport instead of NIO.nativeTransport(String nativeTransport) Whether to use native transport instead of NIO.nettyHttpBinding(String nettyHttpBinding) To use a custom org.apache.camel.component.netty.http.NettyHttpBinding for binding to/from Netty and Camel Message API.nettyHttpBinding(org.apache.camel.component.netty.http.NettyHttpBinding nettyHttpBinding) To use a custom org.apache.camel.component.netty.http.NettyHttpBinding for binding to/from Netty and Camel Message API.Allows to configure additional netty options using option.Allows to configure additional netty options using option.receiveBufferSize(int receiveBufferSize) The TCP/UDP buffer sizes to be used during inbound communication.receiveBufferSize(String receiveBufferSize) The TCP/UDP buffer sizes to be used during inbound communication.receiveBufferSizePredictor(int receiveBufferSizePredictor) Configures the buffer size predictor.receiveBufferSizePredictor(String receiveBufferSizePredictor) Configures the buffer size predictor.sendBufferSize(int sendBufferSize) The TCP/UDP buffer sizes to be used during outbound communication.sendBufferSize(String sendBufferSize) The TCP/UDP buffer sizes to be used during outbound communication.synchronous(boolean synchronous) Sets whether synchronous processing should be strictly used.synchronous(String synchronous) Sets whether synchronous processing should be strictly used.transferException(boolean transferException) If enabled and an Exchange failed processing on the consumer side, and if the caused Exception was send back serialized in the response as a application/x-java-serialized-object content type.transferException(String transferException) If enabled and an Exchange failed processing on the consumer side, and if the caused Exception was send back serialized in the response as a application/x-java-serialized-object content type.transferExchange(boolean transferExchange) Only used for TCP.transferExchange(String transferExchange) Only used for TCP.unixDomainSocketPath(String unixDomainSocketPath) Path to unix domain socket to use instead of inet socket.workerCount(int workerCount) When netty works on nio mode, it uses default workerCount parameter from Netty (which is cpu_core_threads x 2).workerCount(String workerCount) When netty works on nio mode, it uses default workerCount parameter from Netty (which is cpu_core_threads x 2).workerGroup(io.netty.channel.EventLoopGroup workerGroup) To use a explicit EventLoopGroup as the boss thread pool.workerGroup(String workerGroup) To use a explicit EventLoopGroup as the boss thread pool.Methods inherited from interface org.apache.camel.builder.EndpointConsumerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUriMethods inherited from interface org.apache.camel.EndpointConsumerResolver
resolve, resolveMethods inherited from interface org.apache.camel.builder.EndpointProducerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUriMethods inherited from interface org.apache.camel.EndpointProducerResolver
resolve, resolveMethods inherited from interface org.apache.camel.builder.endpoint.dsl.NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder
backlog, backlog, bossCount, bossCount, bossGroup, bossGroup, bridgeErrorHandler, bridgeErrorHandler, chunkedMaxContentLength, chunkedMaxContentLength, compression, compression, disconnectOnNoReply, disconnectOnNoReply, exceptionHandler, exceptionHandler, exchangePattern, exchangePattern, httpMethodRestrict, logWarnOnBadRequest, logWarnOnBadRequest, mapHeaders, mapHeaders, maxChunkSize, maxChunkSize, maxHeaderSize, maxHeaderSize, maxInitialLineLength, maxInitialLineLength, nettyServerBootstrapFactory, nettyServerBootstrapFactory, nettySharedHttpServer, nettySharedHttpServer, noReplyLogLevel, noReplyLogLevel, serverClosedChannelExceptionCaughtLogLevel, serverClosedChannelExceptionCaughtLogLevel, serverExceptionCaughtLogLevel, serverExceptionCaughtLogLevel, serverInitializerFactory, serverInitializerFactory, traceEnabled, traceEnabled, urlDecodeHeaders, urlDecodeHeaders, usingExecutorService, usingExecutorServiceMethods inherited from interface org.apache.camel.builder.endpoint.dsl.NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder
clientInitializerFactory, clientInitializerFactory, lazyChannelCreation, lazyChannelCreation, lazyStartProducer, lazyStartProducer, okStatusCodeRange, producerPoolBlockWhenExhausted, producerPoolBlockWhenExhausted, producerPoolEnabled, producerPoolEnabled, producerPoolMaxIdle, producerPoolMaxIdle, producerPoolMaxTotal, producerPoolMaxTotal, producerPoolMaxWait, producerPoolMaxWait, producerPoolMinEvictableIdle, producerPoolMinEvictableIdle, producerPoolMinIdle, producerPoolMinIdle, useRelativePath, useRelativePath
-
Method Details
-
basic
- Specified by:
basicin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder- Specified by:
basicin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder
-
allowSerializedHeaders
default NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointBuilder allowSerializedHeaders(boolean allowSerializedHeaders) Only used for TCP when transferExchange is true. When set to true, serializable objects in headers and properties will be added to the exchange. Otherwise Camel will exclude any non-serializable objects and log it at WARN level. The option is a: <code>boolean</code> type. Default: false Group: advanced- Specified by:
allowSerializedHeadersin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder- Specified by:
allowSerializedHeadersin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder- Parameters:
allowSerializedHeaders- the value to set- Returns:
- the dsl builder
-
allowSerializedHeaders
default NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointBuilder allowSerializedHeaders(String allowSerializedHeaders) Only used for TCP when transferExchange is true. When set to true, serializable objects in headers and properties will be added to the exchange. Otherwise Camel will exclude any non-serializable objects and log it at WARN level. The option will be converted to a <code>boolean</code> type. Default: false Group: advanced- Specified by:
allowSerializedHeadersin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder- Specified by:
allowSerializedHeadersin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder- Parameters:
allowSerializedHeaders- the value to set- Returns:
- the dsl builder
-
channelGroup
default NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointBuilder channelGroup(io.netty.channel.group.ChannelGroup channelGroup) To use a explicit ChannelGroup. The option is a: <code>io.netty.channel.group.ChannelGroup</code> type. Group: advanced- Specified by:
channelGroupin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder- Specified by:
channelGroupin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder- Parameters:
channelGroup- the value to set- Returns:
- the dsl builder
-
channelGroup
default NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointBuilder channelGroup(String channelGroup) To use a explicit ChannelGroup. The option will be converted to a <code>io.netty.channel.group.ChannelGroup</code> type. Group: advanced- Specified by:
channelGroupin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder- Specified by:
channelGroupin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder- Parameters:
channelGroup- the value to set- Returns:
- the dsl builder
-
configuration
default NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointBuilder configuration(org.apache.camel.component.netty.http.NettyHttpConfiguration configuration) To use a custom configured NettyHttpConfiguration for configuring this endpoint. The option is a: <code>org.apache.camel.component.netty.http.NettyHttpConfiguration</code> type. Group: advanced- Specified by:
configurationin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder- Specified by:
configurationin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder- Parameters:
configuration- the value to set- Returns:
- the dsl builder
-
configuration
default NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointBuilder configuration(String configuration) To use a custom configured NettyHttpConfiguration for configuring this endpoint. The option will be converted to a <code>org.apache.camel.component.netty.http.NettyHttpConfiguration</code> type. Group: advanced- Specified by:
configurationin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder- Specified by:
configurationin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder- Parameters:
configuration- the value to set- Returns:
- the dsl builder
-
disableStreamCache
default NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointBuilder disableStreamCache(boolean disableStreamCache) Determines whether or not the raw input stream from Netty HttpRequest#getContent() or HttpResponset#getContent() is cached or not (Camel will read the stream into a in light-weight memory based Stream caching) cache. By default Camel will cache the Netty input stream to support reading it multiple times to ensure it Camel can retrieve all data from the stream. However you can set this option to true when you for example need to access the raw stream, such as streaming it directly to a file or other persistent store. Mind that if you enable this option, then you cannot read the Netty stream multiple times out of the box, and you would need manually to reset the reader index on the Netty raw stream. Also Netty will auto-close the Netty stream when the Netty HTTP server/HTTP client is done processing, which means that if the asynchronous routing engine is in use then any asynchronous thread that may continue routing the org.apache.camel.Exchange may not be able to read the Netty stream, because Netty has closed it. The option is a: <code>boolean</code> type. Default: false Group: advanced- Specified by:
disableStreamCachein interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder- Specified by:
disableStreamCachein interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder- Parameters:
disableStreamCache- the value to set- Returns:
- the dsl builder
-
disableStreamCache
default NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointBuilder disableStreamCache(String disableStreamCache) Determines whether or not the raw input stream from Netty HttpRequest#getContent() or HttpResponset#getContent() is cached or not (Camel will read the stream into a in light-weight memory based Stream caching) cache. By default Camel will cache the Netty input stream to support reading it multiple times to ensure it Camel can retrieve all data from the stream. However you can set this option to true when you for example need to access the raw stream, such as streaming it directly to a file or other persistent store. Mind that if you enable this option, then you cannot read the Netty stream multiple times out of the box, and you would need manually to reset the reader index on the Netty raw stream. Also Netty will auto-close the Netty stream when the Netty HTTP server/HTTP client is done processing, which means that if the asynchronous routing engine is in use then any asynchronous thread that may continue routing the org.apache.camel.Exchange may not be able to read the Netty stream, because Netty has closed it. The option will be converted to a <code>boolean</code> type. Default: false Group: advanced- Specified by:
disableStreamCachein interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder- Specified by:
disableStreamCachein interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder- Parameters:
disableStreamCache- the value to set- Returns:
- the dsl builder
-
headerFilterStrategy
default NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointBuilder headerFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy) To use a custom org.apache.camel.spi.HeaderFilterStrategy to filter headers. The option is a: <code>org.apache.camel.spi.HeaderFilterStrategy</code> type. Group: advanced- Specified by:
headerFilterStrategyin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder- Specified by:
headerFilterStrategyin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder- Parameters:
headerFilterStrategy- the value to set- Returns:
- the dsl builder
-
headerFilterStrategy
default NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointBuilder headerFilterStrategy(String headerFilterStrategy) To use a custom org.apache.camel.spi.HeaderFilterStrategy to filter headers. The option will be converted to a <code>org.apache.camel.spi.HeaderFilterStrategy</code> type. Group: advanced- Specified by:
headerFilterStrategyin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder- Specified by:
headerFilterStrategyin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder- Parameters:
headerFilterStrategy- the value to set- Returns:
- the dsl builder
-
nativeTransport
default NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointBuilder nativeTransport(boolean nativeTransport) Whether to use native transport instead of NIO. Native transport takes advantage of the host operating system and is only supported on some platforms. You need to add the netty JAR for the host operating system you are using. See more details at: http://netty.io/wiki/native-transports.html. The option is a: <code>boolean</code> type. Default: false Group: advanced- Specified by:
nativeTransportin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder- Specified by:
nativeTransportin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder- Parameters:
nativeTransport- the value to set- Returns:
- the dsl builder
-
nativeTransport
default NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointBuilder nativeTransport(String nativeTransport) Whether to use native transport instead of NIO. Native transport takes advantage of the host operating system and is only supported on some platforms. You need to add the netty JAR for the host operating system you are using. See more details at: http://netty.io/wiki/native-transports.html. The option will be converted to a <code>boolean</code> type. Default: false Group: advanced- Specified by:
nativeTransportin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder- Specified by:
nativeTransportin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder- Parameters:
nativeTransport- the value to set- Returns:
- the dsl builder
-
nettyHttpBinding
default NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointBuilder nettyHttpBinding(org.apache.camel.component.netty.http.NettyHttpBinding nettyHttpBinding) To use a custom org.apache.camel.component.netty.http.NettyHttpBinding for binding to/from Netty and Camel Message API. The option is a: <code>org.apache.camel.component.netty.http.NettyHttpBinding</code> type. Group: advanced- Specified by:
nettyHttpBindingin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder- Specified by:
nettyHttpBindingin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder- Parameters:
nettyHttpBinding- the value to set- Returns:
- the dsl builder
-
nettyHttpBinding
default NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointBuilder nettyHttpBinding(String nettyHttpBinding) To use a custom org.apache.camel.component.netty.http.NettyHttpBinding for binding to/from Netty and Camel Message API. The option will be converted to a <code>org.apache.camel.component.netty.http.NettyHttpBinding</code> type. Group: advanced- Specified by:
nettyHttpBindingin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder- Specified by:
nettyHttpBindingin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder- Parameters:
nettyHttpBinding- the value to set- Returns:
- the dsl builder
-
options
default NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointBuilder options(String key, Object value) Allows to configure additional netty options using option. as prefix. For example option.child.keepAlive=false to set the netty option child.keepAlive=false. See the Netty documentation for possible options that can be used. The option is a: <code>java.util.Map<java.lang.String, java.lang.Object></code> type. The option is multivalued, and you can use the options(String, Object) method to add a value (call the method multiple times to set more values). Group: advanced- Specified by:
optionsin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder- Specified by:
optionsin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder- Parameters:
key- the option keyvalue- the option value- Returns:
- the dsl builder
-
options
Allows to configure additional netty options using option. as prefix. For example option.child.keepAlive=false to set the netty option child.keepAlive=false. See the Netty documentation for possible options that can be used. The option is a: <code>java.util.Map<java.lang.String, java.lang.Object></code> type. The option is multivalued, and you can use the options(String, Object) method to add a value (call the method multiple times to set more values). Group: advanced- Specified by:
optionsin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder- Specified by:
optionsin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder- Parameters:
values- the values- Returns:
- the dsl builder
-
receiveBufferSize
default NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointBuilder receiveBufferSize(int receiveBufferSize) The TCP/UDP buffer sizes to be used during inbound communication. Size is bytes. The option is a: <code>int</code> type. Default: 65536 Group: advanced- Specified by:
receiveBufferSizein interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder- Specified by:
receiveBufferSizein interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder- Parameters:
receiveBufferSize- the value to set- Returns:
- the dsl builder
-
receiveBufferSize
default NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointBuilder receiveBufferSize(String receiveBufferSize) The TCP/UDP buffer sizes to be used during inbound communication. Size is bytes. The option will be converted to a <code>int</code> type. Default: 65536 Group: advanced- Specified by:
receiveBufferSizein interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder- Specified by:
receiveBufferSizein interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder- Parameters:
receiveBufferSize- the value to set- Returns:
- the dsl builder
-
receiveBufferSizePredictor
default NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointBuilder receiveBufferSizePredictor(int receiveBufferSizePredictor) Configures the buffer size predictor. See details at Jetty documentation and this mail thread. The option is a: <code>int</code> type. Group: advanced- Specified by:
receiveBufferSizePredictorin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder- Specified by:
receiveBufferSizePredictorin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder- Parameters:
receiveBufferSizePredictor- the value to set- Returns:
- the dsl builder
-
receiveBufferSizePredictor
default NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointBuilder receiveBufferSizePredictor(String receiveBufferSizePredictor) Configures the buffer size predictor. See details at Jetty documentation and this mail thread. The option will be converted to a <code>int</code> type. Group: advanced- Specified by:
receiveBufferSizePredictorin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder- Specified by:
receiveBufferSizePredictorin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder- Parameters:
receiveBufferSizePredictor- the value to set- Returns:
- the dsl builder
-
sendBufferSize
default NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointBuilder sendBufferSize(int sendBufferSize) The TCP/UDP buffer sizes to be used during outbound communication. Size is bytes. The option is a: <code>int</code> type. Default: 65536 Group: advanced- Specified by:
sendBufferSizein interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder- Specified by:
sendBufferSizein interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder- Parameters:
sendBufferSize- the value to set- Returns:
- the dsl builder
-
sendBufferSize
default NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointBuilder sendBufferSize(String sendBufferSize) The TCP/UDP buffer sizes to be used during outbound communication. Size is bytes. The option will be converted to a <code>int</code> type. Default: 65536 Group: advanced- Specified by:
sendBufferSizein interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder- Specified by:
sendBufferSizein interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder- Parameters:
sendBufferSize- the value to set- Returns:
- the dsl builder
-
synchronous
default NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointBuilder synchronous(boolean synchronous) Sets whether synchronous processing should be strictly used. The option is a: <code>boolean</code> type. Default: false Group: advanced- Specified by:
synchronousin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder- Specified by:
synchronousin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder- Parameters:
synchronous- the value to set- Returns:
- the dsl builder
-
synchronous
default NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointBuilder synchronous(String synchronous) Sets whether synchronous processing should be strictly used. The option will be converted to a <code>boolean</code> type. Default: false Group: advanced- Specified by:
synchronousin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder- Specified by:
synchronousin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder- Parameters:
synchronous- the value to set- Returns:
- the dsl builder
-
transferException
default NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointBuilder transferException(boolean transferException) If enabled and an Exchange failed processing on the consumer side, and if the caused Exception was send back serialized in the response as a application/x-java-serialized-object content type. On the producer side the exception will be deserialized and thrown as is, instead of the HttpOperationFailedException. The caused exception is required to be serialized. This is by default turned off. If you enable this then be aware that Java will deserialize the incoming data from the request to Java and that can be a potential security risk. The option is a: <code>boolean</code> type. Default: false Group: advanced- Specified by:
transferExceptionin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder- Specified by:
transferExceptionin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder- Parameters:
transferException- the value to set- Returns:
- the dsl builder
-
transferException
default NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointBuilder transferException(String transferException) If enabled and an Exchange failed processing on the consumer side, and if the caused Exception was send back serialized in the response as a application/x-java-serialized-object content type. On the producer side the exception will be deserialized and thrown as is, instead of the HttpOperationFailedException. The caused exception is required to be serialized. This is by default turned off. If you enable this then be aware that Java will deserialize the incoming data from the request to Java and that can be a potential security risk. The option will be converted to a <code>boolean</code> type. Default: false Group: advanced- Specified by:
transferExceptionin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder- Specified by:
transferExceptionin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder- Parameters:
transferException- the value to set- Returns:
- the dsl builder
-
transferExchange
default NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointBuilder transferExchange(boolean transferExchange) Only used for TCP. You can transfer the exchange over the wire instead of just the body. The following fields are transferred: In body, Out body, fault body, In headers, Out headers, fault headers, exchange properties, exchange exception. This requires that the objects are serializable. Camel will exclude any non-serializable objects and log it at WARN level. The option is a: <code>boolean</code> type. Default: false Group: advanced- Specified by:
transferExchangein interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder- Specified by:
transferExchangein interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder- Parameters:
transferExchange- the value to set- Returns:
- the dsl builder
-
transferExchange
default NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointBuilder transferExchange(String transferExchange) Only used for TCP. You can transfer the exchange over the wire instead of just the body. The following fields are transferred: In body, Out body, fault body, In headers, Out headers, fault headers, exchange properties, exchange exception. This requires that the objects are serializable. Camel will exclude any non-serializable objects and log it at WARN level. The option will be converted to a <code>boolean</code> type. Default: false Group: advanced- Specified by:
transferExchangein interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder- Specified by:
transferExchangein interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder- Parameters:
transferExchange- the value to set- Returns:
- the dsl builder
-
unixDomainSocketPath
default NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointBuilder unixDomainSocketPath(String unixDomainSocketPath) Path to unix domain socket to use instead of inet socket. Host and port parameters will not be used, however required. It is ok to set dummy values for them. Must be used with nativeTransport=true and clientMode=false. The option is a: <code>java.lang.String</code> type. Group: advanced- Specified by:
unixDomainSocketPathin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder- Specified by:
unixDomainSocketPathin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder- Parameters:
unixDomainSocketPath- the value to set- Returns:
- the dsl builder
-
workerCount
default NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointBuilder workerCount(int workerCount) When netty works on nio mode, it uses default workerCount parameter from Netty (which is cpu_core_threads x 2). User can use this option to override the default workerCount from Netty. The option is a: <code>int</code> type. Group: advanced- Specified by:
workerCountin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder- Specified by:
workerCountin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder- Parameters:
workerCount- the value to set- Returns:
- the dsl builder
-
workerCount
default NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointBuilder workerCount(String workerCount) When netty works on nio mode, it uses default workerCount parameter from Netty (which is cpu_core_threads x 2). User can use this option to override the default workerCount from Netty. The option will be converted to a <code>int</code> type. Group: advanced- Specified by:
workerCountin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder- Specified by:
workerCountin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder- Parameters:
workerCount- the value to set- Returns:
- the dsl builder
-
workerGroup
default NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointBuilder workerGroup(io.netty.channel.EventLoopGroup workerGroup) To use a explicit EventLoopGroup as the boss thread pool. For example to share a thread pool with multiple consumers or producers. By default each consumer or producer has their own worker pool with 2 x cpu count core threads. The option is a: <code>io.netty.channel.EventLoopGroup</code> type. Group: advanced- Specified by:
workerGroupin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder- Specified by:
workerGroupin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder- Parameters:
workerGroup- the value to set- Returns:
- the dsl builder
-
workerGroup
default NettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointBuilder workerGroup(String workerGroup) To use a explicit EventLoopGroup as the boss thread pool. For example to share a thread pool with multiple consumers or producers. By default each consumer or producer has their own worker pool with 2 x cpu count core threads. The option will be converted to a <code>io.netty.channel.EventLoopGroup</code> type. Group: advanced- Specified by:
workerGroupin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointConsumerBuilder- Specified by:
workerGroupin interfaceNettyHttpEndpointBuilderFactory.AdvancedNettyHttpEndpointProducerBuilder- Parameters:
workerGroup- the value to set- Returns:
- the dsl builder
-