Interface DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointConsumerBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder
,org.apache.camel.EndpointConsumerResolver
- All Known Subinterfaces:
DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointBuilder
- Enclosing interface:
- DisruptorVmEndpointBuilderFactory
public static interface DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointConsumerBuilder extends org.apache.camel.builder.EndpointConsumerBuilder
Builder for endpoint consumers for the Disruptor VM component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default DisruptorVmEndpointBuilderFactory.AdvancedDisruptorVmEndpointConsumerBuilder
advanced()
default DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointConsumerBuilder
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 DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointConsumerBuilder
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 DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointConsumerBuilder
concurrentConsumers(int concurrentConsumers)
Number of concurrent threads processing exchanges.default DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointConsumerBuilder
concurrentConsumers(String concurrentConsumers)
Number of concurrent threads processing exchanges.default DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointConsumerBuilder
multipleConsumers(boolean multipleConsumers)
Specifies whether multiple consumers are allowed.default DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointConsumerBuilder
multipleConsumers(String multipleConsumers)
Specifies whether multiple consumers are allowed.default DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointConsumerBuilder
size(int size)
The maximum capacity of the Disruptors ringbuffer Will be effectively increased to the nearest power of two.default DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointConsumerBuilder
size(String size)
The maximum capacity of the Disruptors ringbuffer Will be effectively increased to the nearest power of two.default DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointConsumerBuilder
waitStrategy(String waitStrategy)
Defines the strategy used by consumer threads to wait on new exchanges to be published.default DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointConsumerBuilder
waitStrategy(org.apache.camel.component.disruptor.DisruptorWaitStrategy waitStrategy)
Defines the strategy used by consumer threads to wait on new exchanges to be published.
-
-
-
Method Detail
-
advanced
default DisruptorVmEndpointBuilderFactory.AdvancedDisruptorVmEndpointConsumerBuilder advanced()
-
size
default DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointConsumerBuilder size(int size)
The maximum capacity of the Disruptors ringbuffer Will be effectively increased to the nearest power of two. Notice: Mind if you use this option, then its the first endpoint being created with the queue name, that determines the size. To make sure all endpoints use same size, then configure the size option on all of them, or the first endpoint being created. The option is a: <code>int</code> type. Default: 1024 Group: common- Parameters:
size
- the value to set- Returns:
- the dsl builder
-
size
default DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointConsumerBuilder size(String size)
The maximum capacity of the Disruptors ringbuffer Will be effectively increased to the nearest power of two. Notice: Mind if you use this option, then its the first endpoint being created with the queue name, that determines the size. To make sure all endpoints use same size, then configure the size option on all of them, or the first endpoint being created. The option will be converted to a <code>int</code> type. Default: 1024 Group: common- Parameters:
size
- the value to set- Returns:
- the dsl builder
-
bridgeErrorHandler
default DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointConsumerBuilder 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 DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointConsumerBuilder 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 DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointConsumerBuilder concurrentConsumers(int concurrentConsumers)
Number of concurrent threads processing exchanges. The option is a: <code>int</code> type. Default: 1 Group: consumer- Parameters:
concurrentConsumers
- the value to set- Returns:
- the dsl builder
-
concurrentConsumers
default DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointConsumerBuilder concurrentConsumers(String concurrentConsumers)
Number of concurrent threads processing exchanges. The option will be converted to a <code>int</code> type. Default: 1 Group: consumer- Parameters:
concurrentConsumers
- the value to set- Returns:
- the dsl builder
-
multipleConsumers
default DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointConsumerBuilder multipleConsumers(boolean multipleConsumers)
Specifies whether multiple consumers are allowed. If enabled, you can use Disruptor for Publish-Subscribe messaging. That is, you can send a message to the queue and have each consumer receive a copy of the message. When enabled, this option should be specified on every consumer endpoint. The option is a: <code>boolean</code> type. Default: false Group: consumer- Parameters:
multipleConsumers
- the value to set- Returns:
- the dsl builder
-
multipleConsumers
default DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointConsumerBuilder multipleConsumers(String multipleConsumers)
Specifies whether multiple consumers are allowed. If enabled, you can use Disruptor for Publish-Subscribe messaging. That is, you can send a message to the queue and have each consumer receive a copy of the message. When enabled, this option should be specified on every consumer endpoint. The option will be converted to a <code>boolean</code> type. Default: false Group: consumer- Parameters:
multipleConsumers
- the value to set- Returns:
- the dsl builder
-
waitStrategy
default DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointConsumerBuilder waitStrategy(org.apache.camel.component.disruptor.DisruptorWaitStrategy waitStrategy)
Defines the strategy used by consumer threads to wait on new exchanges to be published. The options allowed are:Blocking, Sleeping, BusySpin and Yielding. The option is a: <code>org.apache.camel.component.disruptor.DisruptorWaitStrategy</code> type. Default: Blocking Group: consumer- Parameters:
waitStrategy
- the value to set- Returns:
- the dsl builder
-
waitStrategy
default DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointConsumerBuilder waitStrategy(String waitStrategy)
Defines the strategy used by consumer threads to wait on new exchanges to be published. The options allowed are:Blocking, Sleeping, BusySpin and Yielding. The option will be converted to a <code>org.apache.camel.component.disruptor.DisruptorWaitStrategy</code> type. Default: Blocking Group: consumer- Parameters:
waitStrategy
- the value to set- Returns:
- the dsl builder
-
-