Interface RocketmqComponentBuilderFactory.RocketmqComponentBuilder

All Superinterfaces:
ComponentBuilder<org.apache.camel.component.rocketmq.RocketMQComponent>
All Known Implementing Classes:
RocketmqComponentBuilderFactory.RocketmqComponentBuilderImpl
Enclosing interface:
RocketmqComponentBuilderFactory

public static interface RocketmqComponentBuilderFactory.RocketmqComponentBuilder extends ComponentBuilder<org.apache.camel.component.rocketmq.RocketMQComponent>
Builder for the RocketMQ component.
  • Method Details

    • namesrvAddr

      Name server address of RocketMQ cluster. The option is a: <code>java.lang.String</code> type. Default: localhost:9876 Group: common
      Parameters:
      namesrvAddr - the value to set
      Returns:
      the dsl builder
    • sendTag

      Each message would be sent with this tag. The option is a: <code>java.lang.String</code> type. Group: common
      Parameters:
      sendTag - the value to set
      Returns:
      the dsl builder
    • bridgeErrorHandler

      default RocketmqComponentBuilderFactory.RocketmqComponentBuilder 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: <code>boolean</code> type. Default: false Group: consumer
      Parameters:
      bridgeErrorHandler - the value to set
      Returns:
      the dsl builder
    • consumerGroup

      Consumer group name. The option is a: <code>java.lang.String</code> type. Group: consumer
      Parameters:
      consumerGroup - the value to set
      Returns:
      the dsl builder
    • subscribeTags

      Subscribe tags of consumer. Multiple tags could be split by , such as TagATagB. The option is a: <code>java.lang.String</code> type. Default: * Group: consumer
      Parameters:
      subscribeTags - the value to set
      Returns:
      the dsl builder
    • lazyStartProducer

      default RocketmqComponentBuilderFactory.RocketmqComponentBuilder 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: <code>boolean</code> type. Default: false Group: producer
      Parameters:
      lazyStartProducer - the value to set
      Returns:
      the dsl builder
    • producerGroup

      Producer group name. The option is a: <code>java.lang.String</code> type. Group: producer
      Parameters:
      producerGroup - the value to set
      Returns:
      the dsl builder
    • replyToConsumerGroup

      default RocketmqComponentBuilderFactory.RocketmqComponentBuilder replyToConsumerGroup(String replyToConsumerGroup)
      Consumer group name used for receiving response. The option is a: <code>java.lang.String</code> type. Group: producer
      Parameters:
      replyToConsumerGroup - the value to set
      Returns:
      the dsl builder
    • replyToTopic

      Topic used for receiving response when using in-out pattern. The option is a: <code>java.lang.String</code> type. Group: producer
      Parameters:
      replyToTopic - the value to set
      Returns:
      the dsl builder
    • waitForSendResult

      default RocketmqComponentBuilderFactory.RocketmqComponentBuilder waitForSendResult(boolean waitForSendResult)
      Whether waiting for send result before routing to next endpoint. The option is a: <code>boolean</code> type. Default: false Group: producer
      Parameters:
      waitForSendResult - the value to set
      Returns:
      the dsl builder
    • autowiredEnabled

      default RocketmqComponentBuilderFactory.RocketmqComponentBuilder autowiredEnabled(boolean autowiredEnabled)
      Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. The option is a: <code>boolean</code> type. Default: true Group: advanced
      Parameters:
      autowiredEnabled - the value to set
      Returns:
      the dsl builder
    • requestTimeoutCheckerIntervalMillis

      default RocketmqComponentBuilderFactory.RocketmqComponentBuilder requestTimeoutCheckerIntervalMillis(long requestTimeoutCheckerIntervalMillis)
      Check interval milliseconds of request timeout. The option is a: <code>long</code> type. Default: 1000 Group: advanced
      Parameters:
      requestTimeoutCheckerIntervalMillis - the value to set
      Returns:
      the dsl builder
    • requestTimeoutMillis

      default RocketmqComponentBuilderFactory.RocketmqComponentBuilder requestTimeoutMillis(long requestTimeoutMillis)
      Timeout milliseconds of receiving response when using in-out pattern. The option is a: <code>long</code> type. Default: 10000 Group: advanced
      Parameters:
      requestTimeoutMillis - the value to set
      Returns:
      the dsl builder
    • accessKey

      Access key for RocketMQ ACL. The option is a: <code>java.lang.String</code> type. Group: secret
      Parameters:
      accessKey - the value to set
      Returns:
      the dsl builder
    • secretKey

      Secret key for RocketMQ ACL. The option is a: <code>java.lang.String</code> type. Group: secret
      Parameters:
      secretKey - the value to set
      Returns:
      the dsl builder