Interface RabbitmqComponentBuilderFactory.RabbitmqComponentBuilder

    • Method Detail

      • addresses

        default RabbitmqComponentBuilderFactory.RabbitmqComponentBuilder addresses​(String addresses)
        If this option is set, camel-rabbitmq will try to create connection based on the setting of option addresses. The addresses value is a string which looks like server1:12345, server2:12345. The option is a: java.lang.String type. Group: common
      • connectionFactory

        default RabbitmqComponentBuilderFactory.RabbitmqComponentBuilder connectionFactory​(com.rabbitmq.client.ConnectionFactory connectionFactory)
        To use a custom RabbitMQ connection factory. When this option is set, all connection options (connectionTimeout, requestedChannelMax...) set on URI are not used. The option is a: com.rabbitmq.client.ConnectionFactory type. Group: common
      • declare

        default RabbitmqComponentBuilderFactory.RabbitmqComponentBuilder declare​(boolean declare)
        If the option is true, camel declare the exchange and queue name and bind them together. If the option is false, camel won't declare the exchange and queue name on the server. The option is a: boolean type. Default: true Group: common
      • exclusive

        default RabbitmqComponentBuilderFactory.RabbitmqComponentBuilder exclusive​(boolean exclusive)
        Exclusive queues may only be accessed by the current connection, and are deleted when that connection closes. The option is a: boolean type. Default: false Group: common
      • skipQueueDeclare

        default RabbitmqComponentBuilderFactory.RabbitmqComponentBuilder skipQueueDeclare​(boolean skipQueueDeclare)
        If true the producer will not declare and bind a queue. This can be used for directing messages via an existing routing key. The option is a: boolean type. Default: false Group: common
      • bridgeErrorHandler

        default RabbitmqComponentBuilderFactory.RabbitmqComponentBuilder 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
      • exclusiveConsumer

        default RabbitmqComponentBuilderFactory.RabbitmqComponentBuilder exclusiveConsumer​(boolean exclusiveConsumer)
        Request exclusive access to the queue (meaning only this consumer can access the queue). This is useful when you want a long-lived shared queue to be temporarily accessible by just one consumer. The option is a: boolean type. Default: false Group: consumer
      • prefetchCount

        default RabbitmqComponentBuilderFactory.RabbitmqComponentBuilder prefetchCount​(int prefetchCount)
        The maximum number of messages that the server will deliver, 0 if unlimited. You need to specify the option of prefetchSize, prefetchCount, prefetchGlobal at the same time. The option is a: int type. Group: consumer
      • prefetchEnabled

        default RabbitmqComponentBuilderFactory.RabbitmqComponentBuilder prefetchEnabled​(boolean prefetchEnabled)
        Enables the quality of service on the RabbitMQConsumer side. You need to specify the option of prefetchSize, prefetchCount, prefetchGlobal at the same time. The option is a: boolean type. Default: false Group: consumer
      • prefetchGlobal

        default RabbitmqComponentBuilderFactory.RabbitmqComponentBuilder prefetchGlobal​(boolean prefetchGlobal)
        If the settings should be applied to the entire channel rather than each consumer You need to specify the option of prefetchSize, prefetchCount, prefetchGlobal at the same time. The option is a: boolean type. Default: false Group: consumer
      • prefetchSize

        default RabbitmqComponentBuilderFactory.RabbitmqComponentBuilder prefetchSize​(int prefetchSize)
        The maximum amount of content (measured in octets) that the server will deliver, 0 if unlimited. You need to specify the option of prefetchSize, prefetchCount, prefetchGlobal at the same time. The option is a: int type. Group: consumer
      • threadPoolSize

        default RabbitmqComponentBuilderFactory.RabbitmqComponentBuilder threadPoolSize​(int threadPoolSize)
        The consumer uses a Thread Pool Executor with a fixed number of threads. This setting allows you to set that number of threads. The option is a: int type. Default: 10 Group: consumer (advanced)
      • additionalProperties

        default RabbitmqComponentBuilderFactory.RabbitmqComponentBuilder additionalProperties​(Map<String,​Object> additionalProperties)
        Map of additional properties. These are standard RabbitMQ properties as defined in com.rabbitmq.client.AMQP.BasicProperties The map keys should be from org.apache.camel.component.rabbitmq.RabbitMQConstants. Any other keys will be ignored. When the message already contains these headers they will be given precedence over these properties. The option is a: java.util.Map type. Group: producer
      • guaranteedDeliveries

        default RabbitmqComponentBuilderFactory.RabbitmqComponentBuilder guaranteedDeliveries​(boolean guaranteedDeliveries)
        When true, an exception will be thrown when the message cannot be delivered (basic.return) and the message is marked as mandatory. PublisherAcknowledgement will also be activated in this case. See also publisher acknowledgements - When will messages be confirmed. The option is a: boolean type. Default: false Group: producer
      • immediate

        default RabbitmqComponentBuilderFactory.RabbitmqComponentBuilder immediate​(boolean immediate)
        This flag tells the server how to react if the message cannot be routed to a queue consumer immediately. If this flag is set, the server will return an undeliverable message with a Return method. If this flag is zero, the server will queue the message, but with no guarantee that it will ever be consumed. If the header is present rabbitmq.IMMEDIATE it will override this option. The option is a: boolean type. Default: false Group: producer
      • lazyStartProducer

        default RabbitmqComponentBuilderFactory.RabbitmqComponentBuilder 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: boolean type. Default: false Group: producer
      • mandatory

        default RabbitmqComponentBuilderFactory.RabbitmqComponentBuilder mandatory​(boolean mandatory)
        This flag tells the server how to react if the message cannot be routed to a queue. If this flag is set, the server will return an unroutable message with a Return method. If this flag is zero, the server silently drops the message. If the header is present rabbitmq.MANDATORY it will override this option. The option is a: boolean type. Default: false Group: producer
      • publisherAcknowledgements

        default RabbitmqComponentBuilderFactory.RabbitmqComponentBuilder publisherAcknowledgements​(boolean publisherAcknowledgements)
        When true, the message will be published with publisher acknowledgements turned on. The option is a: boolean type. Default: false Group: producer
      • publisherAcknowledgementsTimeout

        default RabbitmqComponentBuilderFactory.RabbitmqComponentBuilder publisherAcknowledgementsTimeout​(long publisherAcknowledgementsTimeout)
        The amount of time in milliseconds to wait for a basic.ack response from RabbitMQ server. The option is a: long type. Group: producer
      • args

        default RabbitmqComponentBuilderFactory.RabbitmqComponentBuilder args​(Map<String,​Object> args)
        Specify arguments for configuring the different RabbitMQ concepts, a different prefix is required for each: Exchange: arg.exchange. Queue: arg.queue. Binding: arg.binding. DLQ: arg.dlq.queue. DLQ Binding: arg.dlq.binding. For example to declare a queue with message ttl argument: http://localhost:5672/exchange/queueargs=arg.queue.x-message-ttl=60000. The option is a: java.util.Map type. Group: advanced
      • autoDetectConnectionFactory

        default RabbitmqComponentBuilderFactory.RabbitmqComponentBuilder autoDetectConnectionFactory​(boolean autoDetectConnectionFactory)
        Whether to auto-detect looking up RabbitMQ connection factory from the registry. When enabled and a single instance of the connection factory is found then it will be used. An explicit connection factory can be configured on the component or endpoint level which takes precedence. The option is a: boolean type. Default: true Group: advanced
      • automaticRecoveryEnabled

        default RabbitmqComponentBuilderFactory.RabbitmqComponentBuilder automaticRecoveryEnabled​(Boolean automaticRecoveryEnabled)
        Enables connection automatic recovery (uses connection implementation that performs automatic recovery when connection shutdown is not initiated by the application). The option is a: java.lang.Boolean type. Group: advanced
      • autowiredEnabled

        default RabbitmqComponentBuilderFactory.RabbitmqComponentBuilder 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: boolean type. Default: true Group: advanced
      • connectionFactoryExceptionHandler

        default RabbitmqComponentBuilderFactory.RabbitmqComponentBuilder connectionFactoryExceptionHandler​(com.rabbitmq.client.ExceptionHandler connectionFactoryExceptionHandler)
        Custom rabbitmq ExceptionHandler for ConnectionFactory. The option is a: com.rabbitmq.client.ExceptionHandler type. Group: advanced
      • networkRecoveryInterval

        default RabbitmqComponentBuilderFactory.RabbitmqComponentBuilder networkRecoveryInterval​(Integer networkRecoveryInterval)
        Network recovery interval in milliseconds (interval used when recovering from network failure). The option is a: java.lang.Integer type. Default: 5000 Group: advanced
      • requestTimeoutCheckerInterval

        default RabbitmqComponentBuilderFactory.RabbitmqComponentBuilder requestTimeoutCheckerInterval​(long requestTimeoutCheckerInterval)
        Set requestTimeoutCheckerInterval for inOut exchange. The option is a: long type. Default: 1000 Group: advanced
      • transferException

        default RabbitmqComponentBuilderFactory.RabbitmqComponentBuilder transferException​(boolean transferException)
        When true and an inOut Exchange failed on the consumer side send the caused Exception back in the response. The option is a: boolean type. Default: false Group: advanced