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 Detail

      • 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 a int 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 a boolean type. Default: false 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 a boolean type. Default: false 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 a org.apache.camel.component.disruptor.DisruptorWaitStrategy type. Default: Blocking Group: consumer