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: <code>int</code> type. Default: 1024 Group: common
        Parameters:
        size - the value to set
        Returns:
        the dsl builder
      • 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 <code>int</code> type. Default: 1024 Group: common
        Parameters:
        size - the value to set
        Returns:
        the dsl builder
      • concurrentConsumers

        default DisruptorEndpointBuilderFactory.DisruptorEndpointConsumerBuilder 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 DisruptorEndpointBuilderFactory.DisruptorEndpointConsumerBuilder 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 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: <code>boolean</code> type. Default: false Group: consumer
        Parameters:
        multipleConsumers - the value to set
        Returns:
        the dsl builder
      • 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 <code>boolean</code> type. Default: false Group: consumer
        Parameters:
        multipleConsumers - the value to set
        Returns:
        the dsl builder
      • waitStrategy

        default DisruptorEndpointBuilderFactory.DisruptorEndpointConsumerBuilder 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 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 <code>org.apache.camel.component.disruptor.DisruptorWaitStrategy</code> type. Default: Blocking Group: consumer
        Parameters:
        waitStrategy - the value to set
        Returns:
        the dsl builder