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 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

      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

      default StreamEndpointBuilderFactory.StreamEndpointProducerBuilder closeOnDone(boolean 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