Interface StreamEndpointBuilderFactory.StreamEndpointConsumerBuilder

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

    public static interface StreamEndpointBuilderFactory.StreamEndpointConsumerBuilder
    extends org.apache.camel.builder.EndpointConsumerBuilder
    Builder for endpoint consumers for the Stream component.
    • Method Detail

      • encoding

        default StreamEndpointBuilderFactory.StreamEndpointConsumerBuilder encoding​(String 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: java.lang.String type. Group: common
      • bridgeErrorHandler

        default StreamEndpointBuilderFactory.StreamEndpointConsumerBuilder 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 StreamEndpointBuilderFactory.StreamEndpointConsumerBuilder 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
      • fileWatcher

        default StreamEndpointBuilderFactory.StreamEndpointConsumerBuilder fileWatcher​(boolean fileWatcher)
        To use JVM file watcher to listen for file change events to support re-loading files that may be overwritten, somewhat like tail --retry. The option is a: boolean type. Default: false Group: consumer
      • fileWatcher

        default StreamEndpointBuilderFactory.StreamEndpointConsumerBuilder fileWatcher​(String fileWatcher)
        To use JVM file watcher to listen for file change events to support re-loading files that may be overwritten, somewhat like tail --retry. The option will be converted to a boolean type. Default: false Group: consumer
      • groupLines

        default StreamEndpointBuilderFactory.StreamEndpointConsumerBuilder groupLines​(int groupLines)
        To group X number of lines in the consumer. For example to group 10 lines and therefore only spit out an Exchange with 10 lines, instead of 1 Exchange per line. The option is a: int type. Group: consumer
      • groupLines

        default StreamEndpointBuilderFactory.StreamEndpointConsumerBuilder groupLines​(String groupLines)
        To group X number of lines in the consumer. For example to group 10 lines and therefore only spit out an Exchange with 10 lines, instead of 1 Exchange per line. The option will be converted to a int type. Group: consumer
      • initialPromptDelay

        default StreamEndpointBuilderFactory.StreamEndpointConsumerBuilder initialPromptDelay​(long initialPromptDelay)
        Initial delay in milliseconds before showing the message prompt. This delay occurs only once. Can be used during system startup to avoid message prompts being written while other logging is done to the system out. The option is a: long type. Default: 2000 Group: consumer
      • initialPromptDelay

        default StreamEndpointBuilderFactory.StreamEndpointConsumerBuilder initialPromptDelay​(String initialPromptDelay)
        Initial delay in milliseconds before showing the message prompt. This delay occurs only once. Can be used during system startup to avoid message prompts being written while other logging is done to the system out. The option will be converted to a long type. Default: 2000 Group: consumer
      • retry

        default StreamEndpointBuilderFactory.StreamEndpointConsumerBuilder retry​(boolean retry)
        Will retry opening the stream if it's overwritten, somewhat like tail --retry If reading from files then you should also enable the fileWatcher option, to make it work reliable. The option is a: boolean type. Default: false Group: consumer
      • retry

        default StreamEndpointBuilderFactory.StreamEndpointConsumerBuilder retry​(String retry)
        Will retry opening the stream if it's overwritten, somewhat like tail --retry If reading from files then you should also enable the fileWatcher option, to make it work reliable. The option will be converted to a boolean type. Default: false Group: consumer