Interface SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder
,org.apache.camel.EndpointConsumerResolver
- All Known Subinterfaces:
SjmsEndpointBuilderFactory.SjmsEndpointBuilder
- Enclosing interface:
- SjmsEndpointBuilderFactory
public static interface SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder extends org.apache.camel.builder.EndpointConsumerBuilder
Builder for endpoint consumers for the Simple JMS component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder
acknowledgementMode(String acknowledgementMode)
The JMS acknowledgement name, which is one of: SESSION_TRANSACTED, CLIENT_ACKNOWLEDGE, AUTO_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE.default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder
acknowledgementMode(SjmsEndpointBuilderFactory.SessionAcknowledgementType acknowledgementMode)
The JMS acknowledgement name, which is one of: SESSION_TRANSACTED, CLIENT_ACKNOWLEDGE, AUTO_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE.default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointConsumerBuilder
advanced()
default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder
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.default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder
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.default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder
consumerCount(int consumerCount)
Sets the number of consumer listeners used for this endpoint.default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder
consumerCount(String consumerCount)
Sets the number of consumer listeners used for this endpoint.default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder
durableSubscriptionId(String durableSubscriptionId)
Sets the durable subscription Id required for durable topics.default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder
errorHandlerLoggingLevel(String errorHandlerLoggingLevel)
Allows to configure the default errorHandler logging level for logging uncaught exceptions.default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder
errorHandlerLoggingLevel(org.apache.camel.LoggingLevel errorHandlerLoggingLevel)
Allows to configure the default errorHandler logging level for logging uncaught exceptions.default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder
errorHandlerLogStackTrace(boolean errorHandlerLogStackTrace)
Allows to control whether stacktraces should be logged or not, by the default errorHandler.default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder
errorHandlerLogStackTrace(String errorHandlerLogStackTrace)
Allows to control whether stacktraces should be logged or not, by the default errorHandler.default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder
reconnectBackOff(long reconnectBackOff)
Backoff in millis on consumer pool reconnection attempts.default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder
reconnectBackOff(String reconnectBackOff)
Backoff in millis on consumer pool reconnection attempts.default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder
reconnectOnError(boolean reconnectOnError)
Try to apply reconnection logic on consumer pool.default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder
reconnectOnError(String reconnectOnError)
Try to apply reconnection logic on consumer pool.default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder
synchronous(boolean synchronous)
Sets whether synchronous processing should be strictly used or Camel is allowed to use asynchronous processing (if supported).default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder
synchronous(String synchronous)
Sets whether synchronous processing should be strictly used or Camel is allowed to use asynchronous processing (if supported).default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder
transacted(boolean transacted)
Specifies whether to use transacted mode.default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder
transacted(String transacted)
Specifies whether to use transacted mode.default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder
transactionBatchCount(int transactionBatchCount)
If transacted sets the number of messages to process before committing a transaction.default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder
transactionBatchCount(String transactionBatchCount)
If transacted sets the number of messages to process before committing a transaction.default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder
transactionBatchTimeout(long transactionBatchTimeout)
Sets timeout (in millis) for batch transactions, the value should be 1000 or higher.default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder
transactionBatchTimeout(String transactionBatchTimeout)
Sets timeout (in millis) for batch transactions, the value should be 1000 or higher.default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder
transactionCommitStrategy(Object transactionCommitStrategy)
Sets the commit strategy.default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder
transactionCommitStrategy(String transactionCommitStrategy)
Sets the commit strategy.
-
-
-
Method Detail
-
advanced
default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointConsumerBuilder advanced()
-
acknowledgementMode
default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder acknowledgementMode(SjmsEndpointBuilderFactory.SessionAcknowledgementType acknowledgementMode)
The JMS acknowledgement name, which is one of: SESSION_TRANSACTED, CLIENT_ACKNOWLEDGE, AUTO_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE. The option is a:org.apache.camel.component.sjms.jms.SessionAcknowledgementType
type. Default: AUTO_ACKNOWLEDGE Group: common
-
acknowledgementMode
default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder acknowledgementMode(String acknowledgementMode)
The JMS acknowledgement name, which is one of: SESSION_TRANSACTED, CLIENT_ACKNOWLEDGE, AUTO_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE. The option will be converted to aorg.apache.camel.component.sjms.jms.SessionAcknowledgementType
type. Default: AUTO_ACKNOWLEDGE Group: common
-
bridgeErrorHandler
default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder 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 SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder 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 aboolean
type. Default: false Group: consumer
-
consumerCount
default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder consumerCount(int consumerCount)
Sets the number of consumer listeners used for this endpoint. The option is a:int
type. Default: 1 Group: consumer
-
consumerCount
default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder consumerCount(String consumerCount)
Sets the number of consumer listeners used for this endpoint. The option will be converted to aint
type. Default: 1 Group: consumer
-
durableSubscriptionId
default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder durableSubscriptionId(String durableSubscriptionId)
Sets the durable subscription Id required for durable topics. The option is a:java.lang.String
type. Group: consumer
-
reconnectBackOff
default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder reconnectBackOff(long reconnectBackOff)
Backoff in millis on consumer pool reconnection attempts. The option is a:long
type. Default: 5000 Group: consumer
-
reconnectBackOff
default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder reconnectBackOff(String reconnectBackOff)
Backoff in millis on consumer pool reconnection attempts. The option will be converted to along
type. Default: 5000 Group: consumer
-
reconnectOnError
default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder reconnectOnError(boolean reconnectOnError)
Try to apply reconnection logic on consumer pool. The option is a:boolean
type. Default: true Group: consumer
-
reconnectOnError
default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder reconnectOnError(String reconnectOnError)
Try to apply reconnection logic on consumer pool. The option will be converted to aboolean
type. Default: true Group: consumer
-
synchronous
default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder synchronous(boolean synchronous)
Sets whether synchronous processing should be strictly used or Camel is allowed to use asynchronous processing (if supported). The option is a:boolean
type. Default: true Group: consumer
-
synchronous
default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder synchronous(String synchronous)
Sets whether synchronous processing should be strictly used or Camel is allowed to use asynchronous processing (if supported). The option will be converted to aboolean
type. Default: true Group: consumer
-
errorHandlerLoggingLevel
default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder errorHandlerLoggingLevel(org.apache.camel.LoggingLevel errorHandlerLoggingLevel)
Allows to configure the default errorHandler logging level for logging uncaught exceptions. The option is a:org.apache.camel.LoggingLevel
type. Default: WARN Group: logging
-
errorHandlerLoggingLevel
default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder errorHandlerLoggingLevel(String errorHandlerLoggingLevel)
Allows to configure the default errorHandler logging level for logging uncaught exceptions. The option will be converted to aorg.apache.camel.LoggingLevel
type. Default: WARN Group: logging
-
errorHandlerLogStackTrace
default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder errorHandlerLogStackTrace(boolean errorHandlerLogStackTrace)
Allows to control whether stacktraces should be logged or not, by the default errorHandler. The option is a:boolean
type. Default: true Group: logging
-
errorHandlerLogStackTrace
default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder errorHandlerLogStackTrace(String errorHandlerLogStackTrace)
Allows to control whether stacktraces should be logged or not, by the default errorHandler. The option will be converted to aboolean
type. Default: true Group: logging
-
transacted
default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder transacted(boolean transacted)
Specifies whether to use transacted mode. The option is a:boolean
type. Default: false Group: transaction
-
transacted
default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder transacted(String transacted)
Specifies whether to use transacted mode. The option will be converted to aboolean
type. Default: false Group: transaction
-
transactionBatchCount
default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder transactionBatchCount(int transactionBatchCount)
If transacted sets the number of messages to process before committing a transaction. The option is a:int
type. Default: -1 Group: transaction
-
transactionBatchCount
default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder transactionBatchCount(String transactionBatchCount)
If transacted sets the number of messages to process before committing a transaction. The option will be converted to aint
type. Default: -1 Group: transaction
-
transactionBatchTimeout
default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder transactionBatchTimeout(long transactionBatchTimeout)
Sets timeout (in millis) for batch transactions, the value should be 1000 or higher. The option is a:long
type. Default: 5s Group: transaction
-
transactionBatchTimeout
default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder transactionBatchTimeout(String transactionBatchTimeout)
Sets timeout (in millis) for batch transactions, the value should be 1000 or higher. The option will be converted to along
type. Default: 5s Group: transaction
-
transactionCommitStrategy
default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder transactionCommitStrategy(Object transactionCommitStrategy)
Sets the commit strategy. The option is a:org.apache.camel.component.sjms.TransactionCommitStrategy
type. Group: transaction
-
transactionCommitStrategy
default SjmsEndpointBuilderFactory.SjmsEndpointConsumerBuilder transactionCommitStrategy(String transactionCommitStrategy)
Sets the commit strategy. The option will be converted to aorg.apache.camel.component.sjms.TransactionCommitStrategy
type. Group: transaction
-
-