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 Details

    • advanced

    • 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

      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 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

      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

      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