Interface AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder
,org.apache.camel.EndpointConsumerResolver
- All Known Subinterfaces:
AMQPEndpointBuilderFactory.AdvancedAMQPEndpointBuilder
- Enclosing interface:
- AMQPEndpointBuilderFactory
public static interface AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder
extends org.apache.camel.builder.EndpointConsumerBuilder
Advanced builder for endpoint consumers for the AMQP component.
-
Method Summary
Modifier and TypeMethodDescriptionacceptMessagesWhileStopping
(boolean acceptMessagesWhileStopping) Specifies whether the consumer accept messages while it is stopping.acceptMessagesWhileStopping
(String acceptMessagesWhileStopping) Specifies whether the consumer accept messages while it is stopping.allowReplyManagerQuickStop
(boolean allowReplyManagerQuickStop) Whether the DefaultMessageListenerContainer used in the reply managers for request-reply messaging allow the DefaultMessageListenerContainer.runningAllowed flag to quick stop in case JmsConfiguration#isAcceptMessagesWhileStopping is enabled, and org.apache.camel.CamelContext is currently being stopped.allowReplyManagerQuickStop
(String allowReplyManagerQuickStop) Whether the DefaultMessageListenerContainer used in the reply managers for request-reply messaging allow the DefaultMessageListenerContainer.runningAllowed flag to quick stop in case JmsConfiguration#isAcceptMessagesWhileStopping is enabled, and org.apache.camel.CamelContext is currently being stopped.allowSerializedHeaders
(boolean allowSerializedHeaders) Controls whether or not to include serialized headers.allowSerializedHeaders
(String allowSerializedHeaders) Controls whether or not to include serialized headers.artemisStreamingEnabled
(boolean artemisStreamingEnabled) Whether optimizing for Apache Artemis streaming mode.artemisStreamingEnabled
(String artemisStreamingEnabled) Whether optimizing for Apache Artemis streaming mode.asyncStartListener
(boolean asyncStartListener) Whether to startup the JmsConsumer message listener asynchronously, when starting a route.asyncStartListener
(String asyncStartListener) Whether to startup the JmsConsumer message listener asynchronously, when starting a route.asyncStopListener
(boolean asyncStopListener) Whether to stop the JmsConsumer message listener asynchronously, when stopping a route.asyncStopListener
(String asyncStopListener) Whether to stop the JmsConsumer message listener asynchronously, when stopping a route.basic()
consumerType
(String consumerType) The consumer type to use, which can be one of: Simple, Default, or Custom.consumerType
(org.apache.camel.component.jms.ConsumerType consumerType) The consumer type to use, which can be one of: Simple, Default, or Custom.defaultTaskExecutorType
(String defaultTaskExecutorType) Specifies what default TaskExecutor type to use in the DefaultMessageListenerContainer, for both consumer endpoints and the ReplyTo consumer of producer endpoints.defaultTaskExecutorType
(org.apache.camel.component.jms.DefaultTaskExecutorType defaultTaskExecutorType) Specifies what default TaskExecutor type to use in the DefaultMessageListenerContainer, for both consumer endpoints and the ReplyTo consumer of producer endpoints.destinationResolver
(String destinationResolver) A pluggable org.springframework.jms.support.destination.DestinationResolver that allows you to use your own resolver (for example, to lookup the real destination in a JNDI registry).destinationResolver
(org.springframework.jms.support.destination.DestinationResolver destinationResolver) A pluggable org.springframework.jms.support.destination.DestinationResolver that allows you to use your own resolver (for example, to lookup the real destination in a JNDI registry).eagerLoadingOfProperties
(boolean eagerLoadingOfProperties) Enables eager loading of JMS properties and payload as soon as a message is loaded which generally is inefficient as the JMS properties may not be required but sometimes can catch early any issues with the underlying JMS provider and the use of JMS properties.eagerLoadingOfProperties
(String eagerLoadingOfProperties) Enables eager loading of JMS properties and payload as soon as a message is loaded which generally is inefficient as the JMS properties may not be required but sometimes can catch early any issues with the underlying JMS provider and the use of JMS properties.eagerPoisonBody
(String eagerPoisonBody) If eagerLoadingOfProperties is enabled and the JMS message payload (JMS body or JMS properties) is poison (cannot be read/mapped), then set this text as the message body instead so the message can be processed (the cause of the poison are already stored as exception on the Exchange).errorHandler
(String errorHandler) Specifies a org.springframework.util.ErrorHandler to be invoked in case of any uncaught exceptions thrown while processing a Message.errorHandler
(org.springframework.util.ErrorHandler errorHandler) Specifies a org.springframework.util.ErrorHandler to be invoked in case of any uncaught exceptions thrown while processing a Message.exceptionHandler
(String exceptionHandler) To let the consumer use a custom ExceptionHandler.exceptionHandler
(org.apache.camel.spi.ExceptionHandler exceptionHandler) To let the consumer use a custom ExceptionHandler.exceptionListener
(String exceptionListener) Specifies the JMS Exception Listener that is to be notified of any underlying JMS exceptions.exceptionListener
(javax.jms.ExceptionListener exceptionListener) Specifies the JMS Exception Listener that is to be notified of any underlying JMS exceptions.exchangePattern
(String exchangePattern) Sets the exchange pattern when the consumer creates an exchange.exchangePattern
(org.apache.camel.ExchangePattern exchangePattern) Sets the exchange pattern when the consumer creates an exchange.exposeListenerSession
(boolean exposeListenerSession) Specifies whether the listener session should be exposed when consuming messages.exposeListenerSession
(String exposeListenerSession) Specifies whether the listener session should be exposed when consuming messages.headerFilterStrategy
(String headerFilterStrategy) To use a custom HeaderFilterStrategy to filter header to and from Camel message.headerFilterStrategy
(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy) To use a custom HeaderFilterStrategy to filter header to and from Camel message.idleConsumerLimit
(int idleConsumerLimit) Specify the limit for the number of consumers that are allowed to be idle at any given time.idleConsumerLimit
(String idleConsumerLimit) Specify the limit for the number of consumers that are allowed to be idle at any given time.idleTaskExecutionLimit
(int idleTaskExecutionLimit) Specifies the limit for idle executions of a receive task, not having received any message within its execution.idleTaskExecutionLimit
(String idleTaskExecutionLimit) Specifies the limit for idle executions of a receive task, not having received any message within its execution.includeAllJMSXProperties
(boolean includeAllJMSXProperties) Whether to include all JMSXxxx properties when mapping from JMS to Camel Message.includeAllJMSXProperties
(String includeAllJMSXProperties) Whether to include all JMSXxxx properties when mapping from JMS to Camel Message.jmsKeyFormatStrategy
(String jmsKeyFormatStrategy) Pluggable strategy for encoding and decoding JMS keys so they can be compliant with the JMS specification.jmsKeyFormatStrategy
(org.apache.camel.component.jms.JmsKeyFormatStrategy jmsKeyFormatStrategy) Pluggable strategy for encoding and decoding JMS keys so they can be compliant with the JMS specification.lazyCreateTransactionManager
(boolean lazyCreateTransactionManager) If true, Camel will create a JmsTransactionManager, if there is no transactionManager injected when option transacted=true.lazyCreateTransactionManager
(String lazyCreateTransactionManager) If true, Camel will create a JmsTransactionManager, if there is no transactionManager injected when option transacted=true.mapJmsMessage
(boolean mapJmsMessage) Specifies whether Camel should auto map the received JMS message to a suited payload type, such as javax.jms.TextMessage to a String etc.mapJmsMessage
(String mapJmsMessage) Specifies whether Camel should auto map the received JMS message to a suited payload type, such as javax.jms.TextMessage to a String etc.maxMessagesPerTask
(int maxMessagesPerTask) The number of messages per task.maxMessagesPerTask
(String maxMessagesPerTask) The number of messages per task.messageConverter
(String messageConverter) To use a custom Spring org.springframework.jms.support.converter.MessageConverter so you can be in control how to map to/from a javax.jms.Message.messageConverter
(org.springframework.jms.support.converter.MessageConverter messageConverter) To use a custom Spring org.springframework.jms.support.converter.MessageConverter so you can be in control how to map to/from a javax.jms.Message.messageCreatedStrategy
(String messageCreatedStrategy) To use the given MessageCreatedStrategy which are invoked when Camel creates new instances of javax.jms.Message objects when Camel is sending a JMS message.messageCreatedStrategy
(org.apache.camel.component.jms.MessageCreatedStrategy messageCreatedStrategy) To use the given MessageCreatedStrategy which are invoked when Camel creates new instances of javax.jms.Message objects when Camel is sending a JMS message.messageIdEnabled
(boolean messageIdEnabled) When sending, specifies whether message IDs should be added.messageIdEnabled
(String messageIdEnabled) When sending, specifies whether message IDs should be added.messageListenerContainerFactory
(String messageListenerContainerFactory) Registry ID of the MessageListenerContainerFactory used to determine what org.springframework.jms.listener.AbstractMessageListenerContainer to use to consume messages.messageListenerContainerFactory
(org.apache.camel.component.jms.MessageListenerContainerFactory messageListenerContainerFactory) Registry ID of the MessageListenerContainerFactory used to determine what org.springframework.jms.listener.AbstractMessageListenerContainer to use to consume messages.messageTimestampEnabled
(boolean messageTimestampEnabled) Specifies whether timestamps should be enabled by default on sending messages.messageTimestampEnabled
(String messageTimestampEnabled) Specifies whether timestamps should be enabled by default on sending messages.pubSubNoLocal
(boolean pubSubNoLocal) Specifies whether to inhibit the delivery of messages published by its own connection.pubSubNoLocal
(String pubSubNoLocal) Specifies whether to inhibit the delivery of messages published by its own connection.receiveTimeout
(long receiveTimeout) The timeout for receiving messages (in milliseconds).receiveTimeout
(String receiveTimeout) The timeout for receiving messages (in milliseconds).recoveryInterval
(long recoveryInterval) Specifies the interval between recovery attempts, i.e.recoveryInterval
(String recoveryInterval) Specifies the interval between recovery attempts, i.e.replyToConsumerType
(String replyToConsumerType) The consumer type of the reply consumer (when doing request/reply), which can be one of: Simple, Default, or Custom.replyToConsumerType
(org.apache.camel.component.jms.ConsumerType replyToConsumerType) The consumer type of the reply consumer (when doing request/reply), which can be one of: Simple, Default, or Custom.replyToSameDestinationAllowed
(boolean replyToSameDestinationAllowed) Whether a JMS consumer is allowed to send a reply message to the same destination that the consumer is using to consume from.replyToSameDestinationAllowed
(String replyToSameDestinationAllowed) Whether a JMS consumer is allowed to send a reply message to the same destination that the consumer is using to consume from.requestTimeoutCheckerInterval
(long requestTimeoutCheckerInterval) Configures how often Camel should check for timed out Exchanges when doing request/reply over JMS.requestTimeoutCheckerInterval
(String requestTimeoutCheckerInterval) Configures how often Camel should check for timed out Exchanges when doing request/reply over JMS.synchronous
(boolean synchronous) Sets whether synchronous processing should be strictly used.synchronous
(String synchronous) Sets whether synchronous processing should be strictly used.taskExecutor
(String taskExecutor) Allows you to specify a custom task executor for consuming messages.taskExecutor
(org.springframework.core.task.TaskExecutor taskExecutor) Allows you to specify a custom task executor for consuming messages.transactionManager
(String transactionManager) The Spring transaction manager to use.transactionManager
(org.springframework.transaction.PlatformTransactionManager transactionManager) The Spring transaction manager to use.transactionName
(String transactionName) The name of the transaction to use.transactionTimeout
(int transactionTimeout) The timeout value of the transaction (in seconds), if using transacted mode.transactionTimeout
(String transactionTimeout) The timeout value of the transaction (in seconds), if using transacted mode.transferException
(boolean transferException) If enabled and you are using Request Reply messaging (InOut) and an Exchange failed on the consumer side, then the caused Exception will be send back in response as a javax.jms.ObjectMessage.transferException
(String transferException) If enabled and you are using Request Reply messaging (InOut) and an Exchange failed on the consumer side, then the caused Exception will be send back in response as a javax.jms.ObjectMessage.transferExchange
(boolean transferExchange) You can transfer the exchange over the wire instead of just the body and headers.transferExchange
(String transferExchange) You can transfer the exchange over the wire instead of just the body and headers.useMessageIDAsCorrelationID
(boolean useMessageIDAsCorrelationID) Specifies whether JMSMessageID should always be used as JMSCorrelationID for InOut messages.useMessageIDAsCorrelationID
(String useMessageIDAsCorrelationID) Specifies whether JMSMessageID should always be used as JMSCorrelationID for InOut messages.waitForProvisionCorrelationToBeUpdatedCounter
(int waitForProvisionCorrelationToBeUpdatedCounter) Number of times to wait for provisional correlation id to be updated to the actual correlation id when doing request/reply over JMS and when the option useMessageIDAsCorrelationID is enabled.waitForProvisionCorrelationToBeUpdatedCounter
(String waitForProvisionCorrelationToBeUpdatedCounter) Number of times to wait for provisional correlation id to be updated to the actual correlation id when doing request/reply over JMS and when the option useMessageIDAsCorrelationID is enabled.waitForProvisionCorrelationToBeUpdatedThreadSleepingTime
(long waitForProvisionCorrelationToBeUpdatedThreadSleepingTime) Interval in millis to sleep each time while waiting for provisional correlation id to be updated.waitForProvisionCorrelationToBeUpdatedThreadSleepingTime
(String waitForProvisionCorrelationToBeUpdatedThreadSleepingTime) Interval in millis to sleep each time while waiting for provisional correlation id to be updated.Methods inherited from interface org.apache.camel.builder.EndpointConsumerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUri
Methods inherited from interface org.apache.camel.EndpointConsumerResolver
resolve, resolve
-
Method Details
-
basic
-
acceptMessagesWhileStopping
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder acceptMessagesWhileStopping(boolean acceptMessagesWhileStopping) Specifies whether the consumer accept messages while it is stopping. You may consider enabling this option, if you start and stop JMS routes at runtime, while there are still messages enqueued on the queue. If this option is false, and you stop the JMS route, then messages may be rejected, and the JMS broker would have to attempt redeliveries, which yet again may be rejected, and eventually the message may be moved at a dead letter queue on the JMS broker. To avoid this its recommended to enable this option. The option is a: <code>boolean</code> type. Default: false Group: consumer (advanced)- Parameters:
acceptMessagesWhileStopping
- the value to set- Returns:
- the dsl builder
-
acceptMessagesWhileStopping
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder acceptMessagesWhileStopping(String acceptMessagesWhileStopping) Specifies whether the consumer accept messages while it is stopping. You may consider enabling this option, if you start and stop JMS routes at runtime, while there are still messages enqueued on the queue. If this option is false, and you stop the JMS route, then messages may be rejected, and the JMS broker would have to attempt redeliveries, which yet again may be rejected, and eventually the message may be moved at a dead letter queue on the JMS broker. To avoid this its recommended to enable this option. The option will be converted to a <code>boolean</code> type. Default: false Group: consumer (advanced)- Parameters:
acceptMessagesWhileStopping
- the value to set- Returns:
- the dsl builder
-
allowReplyManagerQuickStop
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder allowReplyManagerQuickStop(boolean allowReplyManagerQuickStop) Whether the DefaultMessageListenerContainer used in the reply managers for request-reply messaging allow the DefaultMessageListenerContainer.runningAllowed flag to quick stop in case JmsConfiguration#isAcceptMessagesWhileStopping is enabled, and org.apache.camel.CamelContext is currently being stopped. This quick stop ability is enabled by default in the regular JMS consumers but to enable for reply managers you must enable this flag. The option is a: <code>boolean</code> type. Default: false Group: consumer (advanced)- Parameters:
allowReplyManagerQuickStop
- the value to set- Returns:
- the dsl builder
-
allowReplyManagerQuickStop
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder allowReplyManagerQuickStop(String allowReplyManagerQuickStop) Whether the DefaultMessageListenerContainer used in the reply managers for request-reply messaging allow the DefaultMessageListenerContainer.runningAllowed flag to quick stop in case JmsConfiguration#isAcceptMessagesWhileStopping is enabled, and org.apache.camel.CamelContext is currently being stopped. This quick stop ability is enabled by default in the regular JMS consumers but to enable for reply managers you must enable this flag. The option will be converted to a <code>boolean</code> type. Default: false Group: consumer (advanced)- Parameters:
allowReplyManagerQuickStop
- the value to set- Returns:
- the dsl builder
-
consumerType
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder consumerType(org.apache.camel.component.jms.ConsumerType consumerType) The consumer type to use, which can be one of: Simple, Default, or Custom. The consumer type determines which Spring JMS listener to use. Default will use org.springframework.jms.listener.DefaultMessageListenerContainer, Simple will use org.springframework.jms.listener.SimpleMessageListenerContainer. When Custom is specified, the MessageListenerContainerFactory defined by the messageListenerContainerFactory option will determine what org.springframework.jms.listener.AbstractMessageListenerContainer to use. The option is a: <code>org.apache.camel.component.jms.ConsumerType</code> type. Default: Default Group: consumer (advanced)- Parameters:
consumerType
- the value to set- Returns:
- the dsl builder
-
consumerType
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder consumerType(String consumerType) The consumer type to use, which can be one of: Simple, Default, or Custom. The consumer type determines which Spring JMS listener to use. Default will use org.springframework.jms.listener.DefaultMessageListenerContainer, Simple will use org.springframework.jms.listener.SimpleMessageListenerContainer. When Custom is specified, the MessageListenerContainerFactory defined by the messageListenerContainerFactory option will determine what org.springframework.jms.listener.AbstractMessageListenerContainer to use. The option will be converted to a <code>org.apache.camel.component.jms.ConsumerType</code> type. Default: Default Group: consumer (advanced)- Parameters:
consumerType
- the value to set- Returns:
- the dsl builder
-
defaultTaskExecutorType
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder defaultTaskExecutorType(org.apache.camel.component.jms.DefaultTaskExecutorType defaultTaskExecutorType) Specifies what default TaskExecutor type to use in the DefaultMessageListenerContainer, for both consumer endpoints and the ReplyTo consumer of producer endpoints. Possible values: SimpleAsync (uses Spring's SimpleAsyncTaskExecutor) or ThreadPool (uses Spring's ThreadPoolTaskExecutor with optimal values - cached threadpool-like). If not set, it defaults to the previous behaviour, which uses a cached thread pool for consumer endpoints and SimpleAsync for reply consumers. The use of ThreadPool is recommended to reduce thread trash in elastic configurations with dynamically increasing and decreasing concurrent consumers. The option is a: <code>org.apache.camel.component.jms.DefaultTaskExecutorType</code> type. Group: consumer (advanced)- Parameters:
defaultTaskExecutorType
- the value to set- Returns:
- the dsl builder
-
defaultTaskExecutorType
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder defaultTaskExecutorType(String defaultTaskExecutorType) Specifies what default TaskExecutor type to use in the DefaultMessageListenerContainer, for both consumer endpoints and the ReplyTo consumer of producer endpoints. Possible values: SimpleAsync (uses Spring's SimpleAsyncTaskExecutor) or ThreadPool (uses Spring's ThreadPoolTaskExecutor with optimal values - cached threadpool-like). If not set, it defaults to the previous behaviour, which uses a cached thread pool for consumer endpoints and SimpleAsync for reply consumers. The use of ThreadPool is recommended to reduce thread trash in elastic configurations with dynamically increasing and decreasing concurrent consumers. The option will be converted to a <code>org.apache.camel.component.jms.DefaultTaskExecutorType</code> type. Group: consumer (advanced)- Parameters:
defaultTaskExecutorType
- the value to set- Returns:
- the dsl builder
-
eagerLoadingOfProperties
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder eagerLoadingOfProperties(boolean eagerLoadingOfProperties) Enables eager loading of JMS properties and payload as soon as a message is loaded which generally is inefficient as the JMS properties may not be required but sometimes can catch early any issues with the underlying JMS provider and the use of JMS properties. See also the option eagerPoisonBody. The option is a: <code>boolean</code> type. Default: false Group: consumer (advanced)- Parameters:
eagerLoadingOfProperties
- the value to set- Returns:
- the dsl builder
-
eagerLoadingOfProperties
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder eagerLoadingOfProperties(String eagerLoadingOfProperties) Enables eager loading of JMS properties and payload as soon as a message is loaded which generally is inefficient as the JMS properties may not be required but sometimes can catch early any issues with the underlying JMS provider and the use of JMS properties. See also the option eagerPoisonBody. The option will be converted to a <code>boolean</code> type. Default: false Group: consumer (advanced)- Parameters:
eagerLoadingOfProperties
- the value to set- Returns:
- the dsl builder
-
eagerPoisonBody
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder eagerPoisonBody(String eagerPoisonBody) If eagerLoadingOfProperties is enabled and the JMS message payload (JMS body or JMS properties) is poison (cannot be read/mapped), then set this text as the message body instead so the message can be processed (the cause of the poison are already stored as exception on the Exchange). This can be turned off by setting eagerPoisonBody=false. See also the option eagerLoadingOfProperties. The option is a: <code>java.lang.String</code> type. Default: Poison JMS message due to ${exception.message} Group: consumer (advanced)- Parameters:
eagerPoisonBody
- the value to set- Returns:
- the dsl builder
-
exceptionHandler
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder exceptionHandler(org.apache.camel.spi.ExceptionHandler exceptionHandler) To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option is a: <code>org.apache.camel.spi.ExceptionHandler</code> type. Group: consumer (advanced)- Parameters:
exceptionHandler
- the value to set- Returns:
- the dsl builder
-
exceptionHandler
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder exceptionHandler(String exceptionHandler) To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option will be converted to a <code>org.apache.camel.spi.ExceptionHandler</code> type. Group: consumer (advanced)- Parameters:
exceptionHandler
- the value to set- Returns:
- the dsl builder
-
exchangePattern
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder exchangePattern(org.apache.camel.ExchangePattern exchangePattern) Sets the exchange pattern when the consumer creates an exchange. The option is a: <code>org.apache.camel.ExchangePattern</code> type. Group: consumer (advanced)- Parameters:
exchangePattern
- the value to set- Returns:
- the dsl builder
-
exchangePattern
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder exchangePattern(String exchangePattern) Sets the exchange pattern when the consumer creates an exchange. The option will be converted to a <code>org.apache.camel.ExchangePattern</code> type. Group: consumer (advanced)- Parameters:
exchangePattern
- the value to set- Returns:
- the dsl builder
-
exposeListenerSession
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder exposeListenerSession(boolean exposeListenerSession) Specifies whether the listener session should be exposed when consuming messages. The option is a: <code>boolean</code> type. Default: false Group: consumer (advanced)- Parameters:
exposeListenerSession
- the value to set- Returns:
- the dsl builder
-
exposeListenerSession
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder exposeListenerSession(String exposeListenerSession) Specifies whether the listener session should be exposed when consuming messages. The option will be converted to a <code>boolean</code> type. Default: false Group: consumer (advanced)- Parameters:
exposeListenerSession
- the value to set- Returns:
- the dsl builder
-
replyToConsumerType
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder replyToConsumerType(org.apache.camel.component.jms.ConsumerType replyToConsumerType) The consumer type of the reply consumer (when doing request/reply), which can be one of: Simple, Default, or Custom. The consumer type determines which Spring JMS listener to use. Default will use org.springframework.jms.listener.DefaultMessageListenerContainer, Simple will use org.springframework.jms.listener.SimpleMessageListenerContainer. When Custom is specified, the MessageListenerContainerFactory defined by the messageListenerContainerFactory option will determine what org.springframework.jms.listener.AbstractMessageListenerContainer to use. The option is a: <code>org.apache.camel.component.jms.ConsumerType</code> type. Default: Default Group: consumer (advanced)- Parameters:
replyToConsumerType
- the value to set- Returns:
- the dsl builder
-
replyToConsumerType
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder replyToConsumerType(String replyToConsumerType) The consumer type of the reply consumer (when doing request/reply), which can be one of: Simple, Default, or Custom. The consumer type determines which Spring JMS listener to use. Default will use org.springframework.jms.listener.DefaultMessageListenerContainer, Simple will use org.springframework.jms.listener.SimpleMessageListenerContainer. When Custom is specified, the MessageListenerContainerFactory defined by the messageListenerContainerFactory option will determine what org.springframework.jms.listener.AbstractMessageListenerContainer to use. The option will be converted to a <code>org.apache.camel.component.jms.ConsumerType</code> type. Default: Default Group: consumer (advanced)- Parameters:
replyToConsumerType
- the value to set- Returns:
- the dsl builder
-
replyToSameDestinationAllowed
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder replyToSameDestinationAllowed(boolean replyToSameDestinationAllowed) Whether a JMS consumer is allowed to send a reply message to the same destination that the consumer is using to consume from. This prevents an endless loop by consuming and sending back the same message to itself. The option is a: <code>boolean</code> type. Default: false Group: consumer (advanced)- Parameters:
replyToSameDestinationAllowed
- the value to set- Returns:
- the dsl builder
-
replyToSameDestinationAllowed
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder replyToSameDestinationAllowed(String replyToSameDestinationAllowed) Whether a JMS consumer is allowed to send a reply message to the same destination that the consumer is using to consume from. This prevents an endless loop by consuming and sending back the same message to itself. The option will be converted to a <code>boolean</code> type. Default: false Group: consumer (advanced)- Parameters:
replyToSameDestinationAllowed
- the value to set- Returns:
- the dsl builder
-
taskExecutor
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder taskExecutor(org.springframework.core.task.TaskExecutor taskExecutor) Allows you to specify a custom task executor for consuming messages. The option is a: <code>org.springframework.core.task.TaskExecutor</code> type. Group: consumer (advanced)- Parameters:
taskExecutor
- the value to set- Returns:
- the dsl builder
-
taskExecutor
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder taskExecutor(String taskExecutor) Allows you to specify a custom task executor for consuming messages. The option will be converted to a <code>org.springframework.core.task.TaskExecutor</code> type. Group: consumer (advanced)- Parameters:
taskExecutor
- the value to set- Returns:
- the dsl builder
-
allowSerializedHeaders
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder allowSerializedHeaders(boolean allowSerializedHeaders) Controls whether or not to include serialized headers. Applies only when transferExchange is true. This requires that the objects are serializable. Camel will exclude any non-serializable objects and log it at WARN level. The option is a: <code>boolean</code> type. Default: false Group: advanced- Parameters:
allowSerializedHeaders
- the value to set- Returns:
- the dsl builder
-
allowSerializedHeaders
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder allowSerializedHeaders(String allowSerializedHeaders) Controls whether or not to include serialized headers. Applies only when transferExchange is true. This requires that the objects are serializable. Camel will exclude any non-serializable objects and log it at WARN level. The option will be converted to a <code>boolean</code> type. Default: false Group: advanced- Parameters:
allowSerializedHeaders
- the value to set- Returns:
- the dsl builder
-
artemisStreamingEnabled
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder artemisStreamingEnabled(boolean artemisStreamingEnabled) Whether optimizing for Apache Artemis streaming mode. This can reduce memory overhead when using Artemis with JMS StreamMessage types. This option must only be enabled if Apache Artemis is being used. The option is a: <code>boolean</code> type. Default: false Group: advanced- Parameters:
artemisStreamingEnabled
- the value to set- Returns:
- the dsl builder
-
artemisStreamingEnabled
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder artemisStreamingEnabled(String artemisStreamingEnabled) Whether optimizing for Apache Artemis streaming mode. This can reduce memory overhead when using Artemis with JMS StreamMessage types. This option must only be enabled if Apache Artemis is being used. The option will be converted to a <code>boolean</code> type. Default: false Group: advanced- Parameters:
artemisStreamingEnabled
- the value to set- Returns:
- the dsl builder
-
asyncStartListener
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder asyncStartListener(boolean asyncStartListener) Whether to startup the JmsConsumer message listener asynchronously, when starting a route. For example if a JmsConsumer cannot get a connection to a remote JMS broker, then it may block while retrying and/or failover. This will cause Camel to block while starting routes. By setting this option to true, you will let routes startup, while the JmsConsumer connects to the JMS broker using a dedicated thread in asynchronous mode. If this option is used, then beware that if the connection could not be established, then an exception is logged at WARN level, and the consumer will not be able to receive messages; You can then restart the route to retry. The option is a: <code>boolean</code> type. Default: false Group: advanced- Parameters:
asyncStartListener
- the value to set- Returns:
- the dsl builder
-
asyncStartListener
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder asyncStartListener(String asyncStartListener) Whether to startup the JmsConsumer message listener asynchronously, when starting a route. For example if a JmsConsumer cannot get a connection to a remote JMS broker, then it may block while retrying and/or failover. This will cause Camel to block while starting routes. By setting this option to true, you will let routes startup, while the JmsConsumer connects to the JMS broker using a dedicated thread in asynchronous mode. If this option is used, then beware that if the connection could not be established, then an exception is logged at WARN level, and the consumer will not be able to receive messages; You can then restart the route to retry. The option will be converted to a <code>boolean</code> type. Default: false Group: advanced- Parameters:
asyncStartListener
- the value to set- Returns:
- the dsl builder
-
asyncStopListener
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder asyncStopListener(boolean asyncStopListener) Whether to stop the JmsConsumer message listener asynchronously, when stopping a route. The option is a: <code>boolean</code> type. Default: false Group: advanced- Parameters:
asyncStopListener
- the value to set- Returns:
- the dsl builder
-
asyncStopListener
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder asyncStopListener(String asyncStopListener) Whether to stop the JmsConsumer message listener asynchronously, when stopping a route. The option will be converted to a <code>boolean</code> type. Default: false Group: advanced- Parameters:
asyncStopListener
- the value to set- Returns:
- the dsl builder
-
destinationResolver
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder destinationResolver(org.springframework.jms.support.destination.DestinationResolver destinationResolver) A pluggable org.springframework.jms.support.destination.DestinationResolver that allows you to use your own resolver (for example, to lookup the real destination in a JNDI registry). The option is a: <code>org.springframework.jms.support.destination.DestinationResolver</code> type. Group: advanced- Parameters:
destinationResolver
- the value to set- Returns:
- the dsl builder
-
destinationResolver
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder destinationResolver(String destinationResolver) A pluggable org.springframework.jms.support.destination.DestinationResolver that allows you to use your own resolver (for example, to lookup the real destination in a JNDI registry). The option will be converted to a <code>org.springframework.jms.support.destination.DestinationResolver</code> type. Group: advanced- Parameters:
destinationResolver
- the value to set- Returns:
- the dsl builder
-
errorHandler
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder errorHandler(org.springframework.util.ErrorHandler errorHandler) Specifies a org.springframework.util.ErrorHandler to be invoked in case of any uncaught exceptions thrown while processing a Message. By default these exceptions will be logged at the WARN level, if no errorHandler has been configured. You can configure logging level and whether stack traces should be logged using errorHandlerLoggingLevel and errorHandlerLogStackTrace options. This makes it much easier to configure, than having to code a custom errorHandler. The option is a: <code>org.springframework.util.ErrorHandler</code> type. Group: advanced- Parameters:
errorHandler
- the value to set- Returns:
- the dsl builder
-
errorHandler
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder errorHandler(String errorHandler) Specifies a org.springframework.util.ErrorHandler to be invoked in case of any uncaught exceptions thrown while processing a Message. By default these exceptions will be logged at the WARN level, if no errorHandler has been configured. You can configure logging level and whether stack traces should be logged using errorHandlerLoggingLevel and errorHandlerLogStackTrace options. This makes it much easier to configure, than having to code a custom errorHandler. The option will be converted to a <code>org.springframework.util.ErrorHandler</code> type. Group: advanced- Parameters:
errorHandler
- the value to set- Returns:
- the dsl builder
-
exceptionListener
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder exceptionListener(javax.jms.ExceptionListener exceptionListener) Specifies the JMS Exception Listener that is to be notified of any underlying JMS exceptions. The option is a: <code>javax.jms.ExceptionListener</code> type. Group: advanced- Parameters:
exceptionListener
- the value to set- Returns:
- the dsl builder
-
exceptionListener
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder exceptionListener(String exceptionListener) Specifies the JMS Exception Listener that is to be notified of any underlying JMS exceptions. The option will be converted to a <code>javax.jms.ExceptionListener</code> type. Group: advanced- Parameters:
exceptionListener
- the value to set- Returns:
- the dsl builder
-
headerFilterStrategy
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder headerFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy) To use a custom HeaderFilterStrategy to filter header to and from Camel message. The option is a: <code>org.apache.camel.spi.HeaderFilterStrategy</code> type. Group: advanced- Parameters:
headerFilterStrategy
- the value to set- Returns:
- the dsl builder
-
headerFilterStrategy
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder headerFilterStrategy(String headerFilterStrategy) To use a custom HeaderFilterStrategy to filter header to and from Camel message. The option will be converted to a <code>org.apache.camel.spi.HeaderFilterStrategy</code> type. Group: advanced- Parameters:
headerFilterStrategy
- the value to set- Returns:
- the dsl builder
-
idleConsumerLimit
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder idleConsumerLimit(int idleConsumerLimit) Specify the limit for the number of consumers that are allowed to be idle at any given time. The option is a: <code>int</code> type. Default: 1 Group: advanced- Parameters:
idleConsumerLimit
- the value to set- Returns:
- the dsl builder
-
idleConsumerLimit
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder idleConsumerLimit(String idleConsumerLimit) Specify the limit for the number of consumers that are allowed to be idle at any given time. The option will be converted to a <code>int</code> type. Default: 1 Group: advanced- Parameters:
idleConsumerLimit
- the value to set- Returns:
- the dsl builder
-
idleTaskExecutionLimit
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder idleTaskExecutionLimit(int idleTaskExecutionLimit) Specifies the limit for idle executions of a receive task, not having received any message within its execution. If this limit is reached, the task will shut down and leave receiving to other executing tasks (in the case of dynamic scheduling; see the maxConcurrentConsumers setting). There is additional doc available from Spring. The option is a: <code>int</code> type. Default: 1 Group: advanced- Parameters:
idleTaskExecutionLimit
- the value to set- Returns:
- the dsl builder
-
idleTaskExecutionLimit
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder idleTaskExecutionLimit(String idleTaskExecutionLimit) Specifies the limit for idle executions of a receive task, not having received any message within its execution. If this limit is reached, the task will shut down and leave receiving to other executing tasks (in the case of dynamic scheduling; see the maxConcurrentConsumers setting). There is additional doc available from Spring. The option will be converted to a <code>int</code> type. Default: 1 Group: advanced- Parameters:
idleTaskExecutionLimit
- the value to set- Returns:
- the dsl builder
-
includeAllJMSXProperties
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder includeAllJMSXProperties(boolean includeAllJMSXProperties) Whether to include all JMSXxxx properties when mapping from JMS to Camel Message. Setting this to true will include properties such as JMSXAppID, and JMSXUserID etc. Note: If you are using a custom headerFilterStrategy then this option does not apply. The option is a: <code>boolean</code> type. Default: false Group: advanced- Parameters:
includeAllJMSXProperties
- the value to set- Returns:
- the dsl builder
-
includeAllJMSXProperties
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder includeAllJMSXProperties(String includeAllJMSXProperties) Whether to include all JMSXxxx properties when mapping from JMS to Camel Message. Setting this to true will include properties such as JMSXAppID, and JMSXUserID etc. Note: If you are using a custom headerFilterStrategy then this option does not apply. The option will be converted to a <code>boolean</code> type. Default: false Group: advanced- Parameters:
includeAllJMSXProperties
- the value to set- Returns:
- the dsl builder
-
jmsKeyFormatStrategy
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder jmsKeyFormatStrategy(org.apache.camel.component.jms.JmsKeyFormatStrategy jmsKeyFormatStrategy) Pluggable strategy for encoding and decoding JMS keys so they can be compliant with the JMS specification. Camel provides two implementations out of the box: default and passthrough. The default strategy will safely marshal dots and hyphens (. and -). The passthrough strategy leaves the key as is. Can be used for JMS brokers which do not care whether JMS header keys contain illegal characters. You can provide your own implementation of the org.apache.camel.component.jms.JmsKeyFormatStrategy and refer to it using the # notation. The option is a: <code>org.apache.camel.component.jms.JmsKeyFormatStrategy</code> type. Group: advanced- Parameters:
jmsKeyFormatStrategy
- the value to set- Returns:
- the dsl builder
-
jmsKeyFormatStrategy
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder jmsKeyFormatStrategy(String jmsKeyFormatStrategy) Pluggable strategy for encoding and decoding JMS keys so they can be compliant with the JMS specification. Camel provides two implementations out of the box: default and passthrough. The default strategy will safely marshal dots and hyphens (. and -). The passthrough strategy leaves the key as is. Can be used for JMS brokers which do not care whether JMS header keys contain illegal characters. You can provide your own implementation of the org.apache.camel.component.jms.JmsKeyFormatStrategy and refer to it using the # notation. The option will be converted to a <code>org.apache.camel.component.jms.JmsKeyFormatStrategy</code> type. Group: advanced- Parameters:
jmsKeyFormatStrategy
- the value to set- Returns:
- the dsl builder
-
mapJmsMessage
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder mapJmsMessage(boolean mapJmsMessage) Specifies whether Camel should auto map the received JMS message to a suited payload type, such as javax.jms.TextMessage to a String etc. The option is a: <code>boolean</code> type. Default: true Group: advanced- Parameters:
mapJmsMessage
- the value to set- Returns:
- the dsl builder
-
mapJmsMessage
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder mapJmsMessage(String mapJmsMessage) Specifies whether Camel should auto map the received JMS message to a suited payload type, such as javax.jms.TextMessage to a String etc. The option will be converted to a <code>boolean</code> type. Default: true Group: advanced- Parameters:
mapJmsMessage
- the value to set- Returns:
- the dsl builder
-
maxMessagesPerTask
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder maxMessagesPerTask(int maxMessagesPerTask) The number of messages per task. -1 is unlimited. If you use a range for concurrent consumers (eg min max), then this option can be used to set a value to eg 100 to control how fast the consumers will shrink when less work is required. The option is a: <code>int</code> type. Default: -1 Group: advanced- Parameters:
maxMessagesPerTask
- the value to set- Returns:
- the dsl builder
-
maxMessagesPerTask
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder maxMessagesPerTask(String maxMessagesPerTask) The number of messages per task. -1 is unlimited. If you use a range for concurrent consumers (eg min max), then this option can be used to set a value to eg 100 to control how fast the consumers will shrink when less work is required. The option will be converted to a <code>int</code> type. Default: -1 Group: advanced- Parameters:
maxMessagesPerTask
- the value to set- Returns:
- the dsl builder
-
messageConverter
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder messageConverter(org.springframework.jms.support.converter.MessageConverter messageConverter) To use a custom Spring org.springframework.jms.support.converter.MessageConverter so you can be in control how to map to/from a javax.jms.Message. The option is a: <code>org.springframework.jms.support.converter.MessageConverter</code> type. Group: advanced- Parameters:
messageConverter
- the value to set- Returns:
- the dsl builder
-
messageConverter
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder messageConverter(String messageConverter) To use a custom Spring org.springframework.jms.support.converter.MessageConverter so you can be in control how to map to/from a javax.jms.Message. The option will be converted to a <code>org.springframework.jms.support.converter.MessageConverter</code> type. Group: advanced- Parameters:
messageConverter
- the value to set- Returns:
- the dsl builder
-
messageCreatedStrategy
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder messageCreatedStrategy(org.apache.camel.component.jms.MessageCreatedStrategy messageCreatedStrategy) To use the given MessageCreatedStrategy which are invoked when Camel creates new instances of javax.jms.Message objects when Camel is sending a JMS message. The option is a: <code>org.apache.camel.component.jms.MessageCreatedStrategy</code> type. Group: advanced- Parameters:
messageCreatedStrategy
- the value to set- Returns:
- the dsl builder
-
messageCreatedStrategy
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder messageCreatedStrategy(String messageCreatedStrategy) To use the given MessageCreatedStrategy which are invoked when Camel creates new instances of javax.jms.Message objects when Camel is sending a JMS message. The option will be converted to a <code>org.apache.camel.component.jms.MessageCreatedStrategy</code> type. Group: advanced- Parameters:
messageCreatedStrategy
- the value to set- Returns:
- the dsl builder
-
messageIdEnabled
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder messageIdEnabled(boolean messageIdEnabled) When sending, specifies whether message IDs should be added. This is just an hint to the JMS broker. If the JMS provider accepts this hint, these messages must have the message ID set to null; if the provider ignores the hint, the message ID must be set to its normal unique value. The option is a: <code>boolean</code> type. Default: true Group: advanced- Parameters:
messageIdEnabled
- the value to set- Returns:
- the dsl builder
-
messageIdEnabled
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder messageIdEnabled(String messageIdEnabled) When sending, specifies whether message IDs should be added. This is just an hint to the JMS broker. If the JMS provider accepts this hint, these messages must have the message ID set to null; if the provider ignores the hint, the message ID must be set to its normal unique value. The option will be converted to a <code>boolean</code> type. Default: true Group: advanced- Parameters:
messageIdEnabled
- the value to set- Returns:
- the dsl builder
-
messageListenerContainerFactory
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder messageListenerContainerFactory(org.apache.camel.component.jms.MessageListenerContainerFactory messageListenerContainerFactory) Registry ID of the MessageListenerContainerFactory used to determine what org.springframework.jms.listener.AbstractMessageListenerContainer to use to consume messages. Setting this will automatically set consumerType to Custom. The option is a: <code>org.apache.camel.component.jms.MessageListenerContainerFactory</code> type. Group: advanced- Parameters:
messageListenerContainerFactory
- the value to set- Returns:
- the dsl builder
-
messageListenerContainerFactory
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder messageListenerContainerFactory(String messageListenerContainerFactory) Registry ID of the MessageListenerContainerFactory used to determine what org.springframework.jms.listener.AbstractMessageListenerContainer to use to consume messages. Setting this will automatically set consumerType to Custom. The option will be converted to a <code>org.apache.camel.component.jms.MessageListenerContainerFactory</code> type. Group: advanced- Parameters:
messageListenerContainerFactory
- the value to set- Returns:
- the dsl builder
-
messageTimestampEnabled
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder messageTimestampEnabled(boolean messageTimestampEnabled) Specifies whether timestamps should be enabled by default on sending messages. This is just an hint to the JMS broker. If the JMS provider accepts this hint, these messages must have the timestamp set to zero; if the provider ignores the hint the timestamp must be set to its normal value. The option is a: <code>boolean</code> type. Default: true Group: advanced- Parameters:
messageTimestampEnabled
- the value to set- Returns:
- the dsl builder
-
messageTimestampEnabled
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder messageTimestampEnabled(String messageTimestampEnabled) Specifies whether timestamps should be enabled by default on sending messages. This is just an hint to the JMS broker. If the JMS provider accepts this hint, these messages must have the timestamp set to zero; if the provider ignores the hint the timestamp must be set to its normal value. The option will be converted to a <code>boolean</code> type. Default: true Group: advanced- Parameters:
messageTimestampEnabled
- the value to set- Returns:
- the dsl builder
-
pubSubNoLocal
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder pubSubNoLocal(boolean pubSubNoLocal) Specifies whether to inhibit the delivery of messages published by its own connection. The option is a: <code>boolean</code> type. Default: false Group: advanced- Parameters:
pubSubNoLocal
- the value to set- Returns:
- the dsl builder
-
pubSubNoLocal
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder pubSubNoLocal(String pubSubNoLocal) Specifies whether to inhibit the delivery of messages published by its own connection. The option will be converted to a <code>boolean</code> type. Default: false Group: advanced- Parameters:
pubSubNoLocal
- the value to set- Returns:
- the dsl builder
-
receiveTimeout
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder receiveTimeout(long receiveTimeout) The timeout for receiving messages (in milliseconds). The option is a: <code>long</code> type. Default: 1000 Group: advanced- Parameters:
receiveTimeout
- the value to set- Returns:
- the dsl builder
-
receiveTimeout
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder receiveTimeout(String receiveTimeout) The timeout for receiving messages (in milliseconds). The option will be converted to a <code>long</code> type. Default: 1000 Group: advanced- Parameters:
receiveTimeout
- the value to set- Returns:
- the dsl builder
-
recoveryInterval
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder recoveryInterval(long recoveryInterval) Specifies the interval between recovery attempts, i.e. when a connection is being refreshed, in milliseconds. The default is 5000 ms, that is, 5 seconds. The option is a: <code>long</code> type. Default: 5000 Group: advanced- Parameters:
recoveryInterval
- the value to set- Returns:
- the dsl builder
-
recoveryInterval
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder recoveryInterval(String recoveryInterval) Specifies the interval between recovery attempts, i.e. when a connection is being refreshed, in milliseconds. The default is 5000 ms, that is, 5 seconds. The option will be converted to a <code>long</code> type. Default: 5000 Group: advanced- Parameters:
recoveryInterval
- the value to set- Returns:
- the dsl builder
-
requestTimeoutCheckerInterval
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder requestTimeoutCheckerInterval(long requestTimeoutCheckerInterval) Configures how often Camel should check for timed out Exchanges when doing request/reply over JMS. By default Camel checks once per second. But if you must react faster when a timeout occurs, then you can lower this interval, to check more frequently. The timeout is determined by the option requestTimeout. The option is a: <code>long</code> type. Default: 1000 Group: advanced- Parameters:
requestTimeoutCheckerInterval
- the value to set- Returns:
- the dsl builder
-
requestTimeoutCheckerInterval
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder requestTimeoutCheckerInterval(String requestTimeoutCheckerInterval) Configures how often Camel should check for timed out Exchanges when doing request/reply over JMS. By default Camel checks once per second. But if you must react faster when a timeout occurs, then you can lower this interval, to check more frequently. The timeout is determined by the option requestTimeout. The option will be converted to a <code>long</code> type. Default: 1000 Group: advanced- Parameters:
requestTimeoutCheckerInterval
- the value to set- Returns:
- the dsl builder
-
synchronous
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder synchronous(boolean synchronous) Sets whether synchronous processing should be strictly used. The option is a: <code>boolean</code> type. Default: false Group: advanced- Parameters:
synchronous
- the value to set- Returns:
- the dsl builder
-
synchronous
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder synchronous(String synchronous) Sets whether synchronous processing should be strictly used. The option will be converted to a <code>boolean</code> type. Default: false Group: advanced- Parameters:
synchronous
- the value to set- Returns:
- the dsl builder
-
transferException
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder transferException(boolean transferException) If enabled and you are using Request Reply messaging (InOut) and an Exchange failed on the consumer side, then the caused Exception will be send back in response as a javax.jms.ObjectMessage. If the client is Camel, the returned Exception is rethrown. This allows you to use Camel JMS as a bridge in your routing - for example, using persistent queues to enable robust routing. Notice that if you also have transferExchange enabled, this option takes precedence. The caught exception is required to be serializable. The original Exception on the consumer side can be wrapped in an outer exception such as org.apache.camel.RuntimeCamelException when returned to the producer. Use this with caution as the data is using Java Object serialization and requires the received to be able to deserialize the data at Class level, which forces a strong coupling between the producers and consumer!. The option is a: <code>boolean</code> type. Default: false Group: advanced- Parameters:
transferException
- the value to set- Returns:
- the dsl builder
-
transferException
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder transferException(String transferException) If enabled and you are using Request Reply messaging (InOut) and an Exchange failed on the consumer side, then the caused Exception will be send back in response as a javax.jms.ObjectMessage. If the client is Camel, the returned Exception is rethrown. This allows you to use Camel JMS as a bridge in your routing - for example, using persistent queues to enable robust routing. Notice that if you also have transferExchange enabled, this option takes precedence. The caught exception is required to be serializable. The original Exception on the consumer side can be wrapped in an outer exception such as org.apache.camel.RuntimeCamelException when returned to the producer. Use this with caution as the data is using Java Object serialization and requires the received to be able to deserialize the data at Class level, which forces a strong coupling between the producers and consumer!. The option will be converted to a <code>boolean</code> type. Default: false Group: advanced- Parameters:
transferException
- the value to set- Returns:
- the dsl builder
-
transferExchange
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder transferExchange(boolean transferExchange) You can transfer the exchange over the wire instead of just the body and headers. The following fields are transferred: In body, Out body, Fault body, In headers, Out headers, Fault headers, exchange properties, exchange exception. This requires that the objects are serializable. Camel will exclude any non-serializable objects and log it at WARN level. You must enable this option on both the producer and consumer side, so Camel knows the payloads is an Exchange and not a regular payload. Use this with caution as the data is using Java Object serialization and requires the receiver to be able to deserialize the data at Class level, which forces a strong coupling between the producers and consumers having to use compatible Camel versions!. The option is a: <code>boolean</code> type. Default: false Group: advanced- Parameters:
transferExchange
- the value to set- Returns:
- the dsl builder
-
transferExchange
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder transferExchange(String transferExchange) You can transfer the exchange over the wire instead of just the body and headers. The following fields are transferred: In body, Out body, Fault body, In headers, Out headers, Fault headers, exchange properties, exchange exception. This requires that the objects are serializable. Camel will exclude any non-serializable objects and log it at WARN level. You must enable this option on both the producer and consumer side, so Camel knows the payloads is an Exchange and not a regular payload. Use this with caution as the data is using Java Object serialization and requires the receiver to be able to deserialize the data at Class level, which forces a strong coupling between the producers and consumers having to use compatible Camel versions!. The option will be converted to a <code>boolean</code> type. Default: false Group: advanced- Parameters:
transferExchange
- the value to set- Returns:
- the dsl builder
-
useMessageIDAsCorrelationID
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder useMessageIDAsCorrelationID(boolean useMessageIDAsCorrelationID) Specifies whether JMSMessageID should always be used as JMSCorrelationID for InOut messages. The option is a: <code>boolean</code> type. Default: false Group: advanced- Parameters:
useMessageIDAsCorrelationID
- the value to set- Returns:
- the dsl builder
-
useMessageIDAsCorrelationID
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder useMessageIDAsCorrelationID(String useMessageIDAsCorrelationID) Specifies whether JMSMessageID should always be used as JMSCorrelationID for InOut messages. The option will be converted to a <code>boolean</code> type. Default: false Group: advanced- Parameters:
useMessageIDAsCorrelationID
- the value to set- Returns:
- the dsl builder
-
waitForProvisionCorrelationToBeUpdatedCounter
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder waitForProvisionCorrelationToBeUpdatedCounter(int waitForProvisionCorrelationToBeUpdatedCounter) Number of times to wait for provisional correlation id to be updated to the actual correlation id when doing request/reply over JMS and when the option useMessageIDAsCorrelationID is enabled. The option is a: <code>int</code> type. Default: 50 Group: advanced- Parameters:
waitForProvisionCorrelationToBeUpdatedCounter
- the value to set- Returns:
- the dsl builder
-
waitForProvisionCorrelationToBeUpdatedCounter
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder waitForProvisionCorrelationToBeUpdatedCounter(String waitForProvisionCorrelationToBeUpdatedCounter) Number of times to wait for provisional correlation id to be updated to the actual correlation id when doing request/reply over JMS and when the option useMessageIDAsCorrelationID is enabled. The option will be converted to a <code>int</code> type. Default: 50 Group: advanced- Parameters:
waitForProvisionCorrelationToBeUpdatedCounter
- the value to set- Returns:
- the dsl builder
-
waitForProvisionCorrelationToBeUpdatedThreadSleepingTime
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder waitForProvisionCorrelationToBeUpdatedThreadSleepingTime(long waitForProvisionCorrelationToBeUpdatedThreadSleepingTime) Interval in millis to sleep each time while waiting for provisional correlation id to be updated. The option is a: <code>long</code> type. Default: 100 Group: advanced- Parameters:
waitForProvisionCorrelationToBeUpdatedThreadSleepingTime
- the value to set- Returns:
- the dsl builder
-
waitForProvisionCorrelationToBeUpdatedThreadSleepingTime
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder waitForProvisionCorrelationToBeUpdatedThreadSleepingTime(String waitForProvisionCorrelationToBeUpdatedThreadSleepingTime) Interval in millis to sleep each time while waiting for provisional correlation id to be updated. The option will be converted to a <code>long</code> type. Default: 100 Group: advanced- Parameters:
waitForProvisionCorrelationToBeUpdatedThreadSleepingTime
- the value to set- Returns:
- the dsl builder
-
lazyCreateTransactionManager
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder lazyCreateTransactionManager(boolean lazyCreateTransactionManager) If true, Camel will create a JmsTransactionManager, if there is no transactionManager injected when option transacted=true. The option is a: <code>boolean</code> type. Default: true Group: transaction (advanced)- Parameters:
lazyCreateTransactionManager
- the value to set- Returns:
- the dsl builder
-
lazyCreateTransactionManager
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder lazyCreateTransactionManager(String lazyCreateTransactionManager) If true, Camel will create a JmsTransactionManager, if there is no transactionManager injected when option transacted=true. The option will be converted to a <code>boolean</code> type. Default: true Group: transaction (advanced)- Parameters:
lazyCreateTransactionManager
- the value to set- Returns:
- the dsl builder
-
transactionManager
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder transactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager) The Spring transaction manager to use. The option is a: <code>org.springframework.transaction.PlatformTransactionManager</code> type. Group: transaction (advanced)- Parameters:
transactionManager
- the value to set- Returns:
- the dsl builder
-
transactionManager
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder transactionManager(String transactionManager) The Spring transaction manager to use. The option will be converted to a <code>org.springframework.transaction.PlatformTransactionManager</code> type. Group: transaction (advanced)- Parameters:
transactionManager
- the value to set- Returns:
- the dsl builder
-
transactionName
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder transactionName(String transactionName) The name of the transaction to use. The option is a: <code>java.lang.String</code> type. Group: transaction (advanced)- Parameters:
transactionName
- the value to set- Returns:
- the dsl builder
-
transactionTimeout
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder transactionTimeout(int transactionTimeout) The timeout value of the transaction (in seconds), if using transacted mode. The option is a: <code>int</code> type. Default: -1 Group: transaction (advanced)- Parameters:
transactionTimeout
- the value to set- Returns:
- the dsl builder
-
transactionTimeout
default AMQPEndpointBuilderFactory.AdvancedAMQPEndpointConsumerBuilder transactionTimeout(String transactionTimeout) The timeout value of the transaction (in seconds), if using transacted mode. The option will be converted to a <code>int</code> type. Default: -1 Group: transaction (advanced)- Parameters:
transactionTimeout
- the value to set- Returns:
- the dsl builder
-