Interface StreamEndpointBuilderFactory.StreamEndpointProducerBuilder
- All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder
,org.apache.camel.EndpointProducerResolver
- All Known Subinterfaces:
StreamEndpointBuilderFactory.StreamEndpointBuilder
- Enclosing interface:
- StreamEndpointBuilderFactory
public static interface StreamEndpointBuilderFactory.StreamEndpointProducerBuilder
extends org.apache.camel.builder.EndpointProducerBuilder
Builder for endpoint producers for the Stream component.
-
Method Summary
Modifier and TypeMethodDescriptionadvanced()
appendNewLine
(boolean appendNewLine) Whether to append a new line character at end of output.appendNewLine
(String appendNewLine) Whether to append a new line character at end of output.autoCloseCount
(int autoCloseCount) Number of messages to process before closing stream on Producer side.autoCloseCount
(String autoCloseCount) Number of messages to process before closing stream on Producer side.closeOnDone
(boolean closeOnDone) This option is used in combination with Splitter and streaming to the same file.closeOnDone
(String closeOnDone) This option is used in combination with Splitter and streaming to the same file.delay
(long delay) Initial delay in milliseconds before producing the stream.Initial delay in milliseconds before producing the stream.You can configure the encoding (is a charset name) to use text-based streams (for example, message body is a String object).When using the stream:file URI format, this option specifies the filename to stream to/from.Methods inherited from interface org.apache.camel.builder.EndpointProducerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUri
Methods inherited from interface org.apache.camel.EndpointProducerResolver
resolve, resolve
-
Method Details
-
advanced
-
encoding
You can configure the encoding (is a charset name) to use text-based streams (for example, message body is a String object). If not provided, Camel uses the JVM default Charset. The option is a: <code>java.lang.String</code> type. Group: common- Parameters:
encoding
- the value to set- Returns:
- the dsl builder
-
fileName
When using the stream:file URI format, this option specifies the filename to stream to/from. The option is a: <code>java.lang.String</code> type. Group: common- Parameters:
fileName
- the value to set- Returns:
- the dsl builder
-
appendNewLine
default StreamEndpointBuilderFactory.StreamEndpointProducerBuilder appendNewLine(boolean appendNewLine) Whether to append a new line character at end of output. The option is a: <code>boolean</code> type. Default: true Group: producer- Parameters:
appendNewLine
- the value to set- Returns:
- the dsl builder
-
appendNewLine
default StreamEndpointBuilderFactory.StreamEndpointProducerBuilder appendNewLine(String appendNewLine) Whether to append a new line character at end of output. The option will be converted to a <code>boolean</code> type. Default: true Group: producer- Parameters:
appendNewLine
- the value to set- Returns:
- the dsl builder
-
autoCloseCount
default StreamEndpointBuilderFactory.StreamEndpointProducerBuilder autoCloseCount(int autoCloseCount) Number of messages to process before closing stream on Producer side. Never close stream by default (only when Producer is stopped). If more messages are sent, the stream is reopened for another autoCloseCount batch. The option is a: <code>int</code> type. Group: producer- Parameters:
autoCloseCount
- the value to set- Returns:
- the dsl builder
-
autoCloseCount
default StreamEndpointBuilderFactory.StreamEndpointProducerBuilder autoCloseCount(String autoCloseCount) Number of messages to process before closing stream on Producer side. Never close stream by default (only when Producer is stopped). If more messages are sent, the stream is reopened for another autoCloseCount batch. The option will be converted to a <code>int</code> type. Group: producer- Parameters:
autoCloseCount
- the value to set- Returns:
- the dsl builder
-
closeOnDone
This option is used in combination with Splitter and streaming to the same file. The idea is to keep the stream open and only close when the Splitter is done, to improve performance. Mind this requires that you only stream to the same file, and not 2 or more files. The option is a: <code>boolean</code> type. Default: false Group: producer- Parameters:
closeOnDone
- the value to set- Returns:
- the dsl builder
-
closeOnDone
This option is used in combination with Splitter and streaming to the same file. The idea is to keep the stream open and only close when the Splitter is done, to improve performance. Mind this requires that you only stream to the same file, and not 2 or more files. The option will be converted to a <code>boolean</code> type. Default: false Group: producer- Parameters:
closeOnDone
- the value to set- Returns:
- the dsl builder
-
delay
Initial delay in milliseconds before producing the stream. The option is a: <code>long</code> type. Group: producer- Parameters:
delay
- the value to set- Returns:
- the dsl builder
-
delay
Initial delay in milliseconds before producing the stream. The option will be converted to a <code>long</code> type. Group: producer- Parameters:
delay
- the value to set- Returns:
- the dsl builder
-