Interface HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder
,org.apache.camel.EndpointConsumerResolver
- All Known Subinterfaces:
HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointBuilder
- Enclosing interface:
- HazelcastSedaEndpointBuilderFactory
public static interface HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder extends org.apache.camel.builder.EndpointConsumerBuilder
Builder for endpoint consumers for the Hazelcast SEDA component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default HazelcastSedaEndpointBuilderFactory.AdvancedHazelcastSedaEndpointConsumerBuilder
advanced()
default HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder
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 HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder
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 HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder
concurrentConsumers(int concurrentConsumers)
To use concurrent consumers polling from the SEDA queue.default HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder
concurrentConsumers(String concurrentConsumers)
To use concurrent consumers polling from the SEDA queue.default HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder
defaultOperation(String defaultOperation)
To specify a default operation to use, if no operation header has been provided.default HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder
defaultOperation(org.apache.camel.component.hazelcast.HazelcastOperation defaultOperation)
To specify a default operation to use, if no operation header has been provided.default HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder
hazelcastInstance(com.hazelcast.core.HazelcastInstance hazelcastInstance)
The hazelcast instance reference which can be used for hazelcast endpoint.default HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder
hazelcastInstance(String hazelcastInstance)
The hazelcast instance reference which can be used for hazelcast endpoint.default HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder
hazelcastInstanceName(String hazelcastInstanceName)
The hazelcast instance reference name which can be used for hazelcast endpoint.default HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder
onErrorDelay(int onErrorDelay)
Milliseconds before consumer continues polling after an error has occurred.default HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder
onErrorDelay(String onErrorDelay)
Milliseconds before consumer continues polling after an error has occurred.default HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder
pollTimeout(int pollTimeout)
The timeout used when consuming from the SEDA queue.default HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder
pollTimeout(String pollTimeout)
The timeout used when consuming from the SEDA queue.default HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder
transacted(boolean transacted)
If set to true then the consumer runs in transaction mode, where the messages in the seda queue will only be removed if the transaction commits, which happens when the processing is complete.default HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder
transacted(String transacted)
If set to true then the consumer runs in transaction mode, where the messages in the seda queue will only be removed if the transaction commits, which happens when the processing is complete.default HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder
transferExchange(boolean transferExchange)
If set to true the whole Exchange will be transfered.default HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder
transferExchange(String transferExchange)
If set to true the whole Exchange will be transfered.
-
-
-
Method Detail
-
advanced
default HazelcastSedaEndpointBuilderFactory.AdvancedHazelcastSedaEndpointConsumerBuilder advanced()
-
defaultOperation
default HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder defaultOperation(org.apache.camel.component.hazelcast.HazelcastOperation defaultOperation)
To specify a default operation to use, if no operation header has been provided. The option is a: <code>org.apache.camel.component.hazelcast.HazelcastOperation</code> type. Group: common- Parameters:
defaultOperation
- the value to set- Returns:
- the dsl builder
-
defaultOperation
default HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder defaultOperation(String defaultOperation)
To specify a default operation to use, if no operation header has been provided. The option will be converted to a <code>org.apache.camel.component.hazelcast.HazelcastOperation</code> type. Group: common- Parameters:
defaultOperation
- the value to set- Returns:
- the dsl builder
-
hazelcastInstance
default HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder hazelcastInstance(com.hazelcast.core.HazelcastInstance hazelcastInstance)
The hazelcast instance reference which can be used for hazelcast endpoint. The option is a: <code>com.hazelcast.core.HazelcastInstance</code> type. Group: common- Parameters:
hazelcastInstance
- the value to set- Returns:
- the dsl builder
-
hazelcastInstance
default HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder hazelcastInstance(String hazelcastInstance)
The hazelcast instance reference which can be used for hazelcast endpoint. The option will be converted to a <code>com.hazelcast.core.HazelcastInstance</code> type. Group: common- Parameters:
hazelcastInstance
- the value to set- Returns:
- the dsl builder
-
hazelcastInstanceName
default HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder hazelcastInstanceName(String hazelcastInstanceName)
The hazelcast instance reference name which can be used for hazelcast endpoint. If you don't specify the instance reference, camel use the default hazelcast instance from the camel-hazelcast instance. The option is a: <code>java.lang.String</code> type. Group: common- Parameters:
hazelcastInstanceName
- the value to set- Returns:
- the dsl builder
-
bridgeErrorHandler
default HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder bridgeErrorHandler(boolean bridgeErrorHandler)
Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option is a: <code>boolean</code> type. Default: false Group: consumer- Parameters:
bridgeErrorHandler
- the value to set- Returns:
- the dsl builder
-
bridgeErrorHandler
default HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder bridgeErrorHandler(String bridgeErrorHandler)
Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option will be converted to a <code>boolean</code> type. Default: false Group: consumer- Parameters:
bridgeErrorHandler
- the value to set- Returns:
- the dsl builder
-
concurrentConsumers
default HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder concurrentConsumers(int concurrentConsumers)
To use concurrent consumers polling from the SEDA queue. The option is a: <code>int</code> type. Default: 1 Group: seda- Parameters:
concurrentConsumers
- the value to set- Returns:
- the dsl builder
-
concurrentConsumers
default HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder concurrentConsumers(String concurrentConsumers)
To use concurrent consumers polling from the SEDA queue. The option will be converted to a <code>int</code> type. Default: 1 Group: seda- Parameters:
concurrentConsumers
- the value to set- Returns:
- the dsl builder
-
onErrorDelay
default HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder onErrorDelay(int onErrorDelay)
Milliseconds before consumer continues polling after an error has occurred. The option is a: <code>int</code> type. Default: 1000 Group: seda- Parameters:
onErrorDelay
- the value to set- Returns:
- the dsl builder
-
onErrorDelay
default HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder onErrorDelay(String onErrorDelay)
Milliseconds before consumer continues polling after an error has occurred. The option will be converted to a <code>int</code> type. Default: 1000 Group: seda- Parameters:
onErrorDelay
- the value to set- Returns:
- the dsl builder
-
pollTimeout
default HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder pollTimeout(int pollTimeout)
The timeout used when consuming from the SEDA queue. When a timeout occurs, the consumer can check whether it is allowed to continue running. Setting a lower value allows the consumer to react more quickly upon shutdown. The option is a: <code>int</code> type. Default: 1000 Group: seda- Parameters:
pollTimeout
- the value to set- Returns:
- the dsl builder
-
pollTimeout
default HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder pollTimeout(String pollTimeout)
The timeout used when consuming from the SEDA queue. When a timeout occurs, the consumer can check whether it is allowed to continue running. Setting a lower value allows the consumer to react more quickly upon shutdown. The option will be converted to a <code>int</code> type. Default: 1000 Group: seda- Parameters:
pollTimeout
- the value to set- Returns:
- the dsl builder
-
transacted
default HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder transacted(boolean transacted)
If set to true then the consumer runs in transaction mode, where the messages in the seda queue will only be removed if the transaction commits, which happens when the processing is complete. The option is a: <code>boolean</code> type. Default: false Group: seda- Parameters:
transacted
- the value to set- Returns:
- the dsl builder
-
transacted
default HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder transacted(String transacted)
If set to true then the consumer runs in transaction mode, where the messages in the seda queue will only be removed if the transaction commits, which happens when the processing is complete. The option will be converted to a <code>boolean</code> type. Default: false Group: seda- Parameters:
transacted
- the value to set- Returns:
- the dsl builder
-
transferExchange
default HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder transferExchange(boolean transferExchange)
If set to true the whole Exchange will be transfered. If header or body contains not serializable objects, they will be skipped. The option is a: <code>boolean</code> type. Default: false Group: seda- Parameters:
transferExchange
- the value to set- Returns:
- the dsl builder
-
transferExchange
default HazelcastSedaEndpointBuilderFactory.HazelcastSedaEndpointConsumerBuilder transferExchange(String transferExchange)
If set to true the whole Exchange will be transfered. If header or body contains not serializable objects, they will be skipped. The option will be converted to a <code>boolean</code> type. Default: false Group: seda- Parameters:
transferExchange
- the value to set- Returns:
- the dsl builder
-
-