Interface DisruptorEndpointBuilderFactory.DisruptorEndpointConsumerBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder
,org.apache.camel.EndpointConsumerResolver
- All Known Subinterfaces:
DisruptorEndpointBuilderFactory.DisruptorEndpointBuilder
- Enclosing interface:
- DisruptorEndpointBuilderFactory
public static interface DisruptorEndpointBuilderFactory.DisruptorEndpointConsumerBuilder extends org.apache.camel.builder.EndpointConsumerBuilder
Builder for endpoint consumers for the Disruptor component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default DisruptorEndpointBuilderFactory.AdvancedDisruptorEndpointConsumerBuilder
advanced()
default DisruptorEndpointBuilderFactory.DisruptorEndpointConsumerBuilder
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 DisruptorEndpointBuilderFactory.DisruptorEndpointConsumerBuilder
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 DisruptorEndpointBuilderFactory.DisruptorEndpointConsumerBuilder
concurrentConsumers(int concurrentConsumers)
Number of concurrent threads processing exchanges.default DisruptorEndpointBuilderFactory.DisruptorEndpointConsumerBuilder
concurrentConsumers(String concurrentConsumers)
Number of concurrent threads processing exchanges.default DisruptorEndpointBuilderFactory.DisruptorEndpointConsumerBuilder
multipleConsumers(boolean multipleConsumers)
Specifies whether multiple consumers are allowed.default DisruptorEndpointBuilderFactory.DisruptorEndpointConsumerBuilder
multipleConsumers(String multipleConsumers)
Specifies whether multiple consumers are allowed.default DisruptorEndpointBuilderFactory.DisruptorEndpointConsumerBuilder
size(int size)
The maximum capacity of the Disruptors ringbuffer Will be effectively increased to the nearest power of two.default DisruptorEndpointBuilderFactory.DisruptorEndpointConsumerBuilder
size(String size)
The maximum capacity of the Disruptors ringbuffer Will be effectively increased to the nearest power of two.default DisruptorEndpointBuilderFactory.DisruptorEndpointConsumerBuilder
waitStrategy(String waitStrategy)
Defines the strategy used by consumer threads to wait on new exchanges to be published.default DisruptorEndpointBuilderFactory.DisruptorEndpointConsumerBuilder
waitStrategy(DisruptorEndpointBuilderFactory.DisruptorWaitStrategy waitStrategy)
Defines the strategy used by consumer threads to wait on new exchanges to be published.
-
-
-
Method Detail
-
advanced
default DisruptorEndpointBuilderFactory.AdvancedDisruptorEndpointConsumerBuilder advanced()
-
size
default DisruptorEndpointBuilderFactory.DisruptorEndpointConsumerBuilder 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:int
type. Default: 1024 Group: common
-
size
default DisruptorEndpointBuilderFactory.DisruptorEndpointConsumerBuilder 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 aint
type. Default: 1024 Group: common
-
bridgeErrorHandler
default DisruptorEndpointBuilderFactory.DisruptorEndpointConsumerBuilder 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 DisruptorEndpointBuilderFactory.DisruptorEndpointConsumerBuilder 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
-
concurrentConsumers
default DisruptorEndpointBuilderFactory.DisruptorEndpointConsumerBuilder concurrentConsumers(int concurrentConsumers)
Number of concurrent threads processing exchanges. The option is a:int
type. Default: 1 Group: consumer
-
concurrentConsumers
default DisruptorEndpointBuilderFactory.DisruptorEndpointConsumerBuilder concurrentConsumers(String concurrentConsumers)
Number of concurrent threads processing exchanges. The option will be converted to aint
type. Default: 1 Group: consumer
-
multipleConsumers
default DisruptorEndpointBuilderFactory.DisruptorEndpointConsumerBuilder 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:boolean
type. Default: false Group: consumer
-
multipleConsumers
default DisruptorEndpointBuilderFactory.DisruptorEndpointConsumerBuilder 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 aboolean
type. Default: false Group: consumer
-
waitStrategy
default DisruptorEndpointBuilderFactory.DisruptorEndpointConsumerBuilder waitStrategy(DisruptorEndpointBuilderFactory.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:org.apache.camel.component.disruptor.DisruptorWaitStrategy
type. Default: Blocking Group: consumer
-
waitStrategy
default DisruptorEndpointBuilderFactory.DisruptorEndpointConsumerBuilder 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 aorg.apache.camel.component.disruptor.DisruptorWaitStrategy
type. Default: Blocking Group: consumer
-
-