Interface DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointProducerBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder
,org.apache.camel.EndpointProducerResolver
- All Known Subinterfaces:
DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointBuilder
- Enclosing interface:
- DisruptorVmEndpointBuilderFactory
public static interface DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointProducerBuilder extends org.apache.camel.builder.EndpointProducerBuilder
Builder for endpoint producers for the Disruptor VM component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default DisruptorVmEndpointBuilderFactory.AdvancedDisruptorVmEndpointProducerBuilder
advanced()
default DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointProducerBuilder
blockWhenFull(boolean blockWhenFull)
Whether a thread that sends messages to a full Disruptor will block until the ringbuffer's capacity is no longer exhausted.default DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointProducerBuilder
blockWhenFull(String blockWhenFull)
Whether a thread that sends messages to a full Disruptor will block until the ringbuffer's capacity is no longer exhausted.default DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointProducerBuilder
producerType(String producerType)
Defines the producers allowed on the Disruptor.default DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointProducerBuilder
producerType(org.apache.camel.component.disruptor.DisruptorProducerType producerType)
Defines the producers allowed on the Disruptor.default DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointProducerBuilder
size(int size)
The maximum capacity of the Disruptors ringbuffer Will be effectively increased to the nearest power of two.default DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointProducerBuilder
size(String size)
The maximum capacity of the Disruptors ringbuffer Will be effectively increased to the nearest power of two.default DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointProducerBuilder
timeout(long timeout)
Timeout (in milliseconds) before a producer will stop waiting for an asynchronous task to complete.default DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointProducerBuilder
timeout(String timeout)
Timeout (in milliseconds) before a producer will stop waiting for an asynchronous task to complete.default DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointProducerBuilder
waitForTaskToComplete(String waitForTaskToComplete)
Option to specify whether the caller should wait for the async task to complete or not before continuing.default DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointProducerBuilder
waitForTaskToComplete(org.apache.camel.WaitForTaskToComplete waitForTaskToComplete)
Option to specify whether the caller should wait for the async task to complete or not before continuing.
-
-
-
Method Detail
-
advanced
default DisruptorVmEndpointBuilderFactory.AdvancedDisruptorVmEndpointProducerBuilder advanced()
-
size
default DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointProducerBuilder 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.DisruptorVmEndpointProducerBuilder 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
-
blockWhenFull
default DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointProducerBuilder blockWhenFull(boolean blockWhenFull)
Whether a thread that sends messages to a full Disruptor will block until the ringbuffer's capacity is no longer exhausted. By default, the calling thread will block and wait until the message can be accepted. By disabling this option, an exception will be thrown stating that the queue is full. The option is a: <code>boolean</code> type. Default: false Group: producer- Parameters:
blockWhenFull
- the value to set- Returns:
- the dsl builder
-
blockWhenFull
default DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointProducerBuilder blockWhenFull(String blockWhenFull)
Whether a thread that sends messages to a full Disruptor will block until the ringbuffer's capacity is no longer exhausted. By default, the calling thread will block and wait until the message can be accepted. By disabling this option, an exception will be thrown stating that the queue is full. The option will be converted to a <code>boolean</code> type. Default: false Group: producer- Parameters:
blockWhenFull
- the value to set- Returns:
- the dsl builder
-
producerType
default DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointProducerBuilder producerType(org.apache.camel.component.disruptor.DisruptorProducerType producerType)
Defines the producers allowed on the Disruptor. The options allowed are: Multi to allow multiple producers and Single to enable certain optimizations only allowed when one concurrent producer (on one thread or otherwise synchronized) is active. The option is a: <code>org.apache.camel.component.disruptor.DisruptorProducerType</code> type. Default: Multi Group: producer- Parameters:
producerType
- the value to set- Returns:
- the dsl builder
-
producerType
default DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointProducerBuilder producerType(String producerType)
Defines the producers allowed on the Disruptor. The options allowed are: Multi to allow multiple producers and Single to enable certain optimizations only allowed when one concurrent producer (on one thread or otherwise synchronized) is active. The option will be converted to a <code>org.apache.camel.component.disruptor.DisruptorProducerType</code> type. Default: Multi Group: producer- Parameters:
producerType
- the value to set- Returns:
- the dsl builder
-
timeout
default DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointProducerBuilder timeout(long timeout)
Timeout (in milliseconds) before a producer will stop waiting for an asynchronous task to complete. You can disable timeout by using 0 or a negative value. The option is a: <code>long</code> type. Default: 30000 Group: producer- Parameters:
timeout
- the value to set- Returns:
- the dsl builder
-
timeout
default DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointProducerBuilder timeout(String timeout)
Timeout (in milliseconds) before a producer will stop waiting for an asynchronous task to complete. You can disable timeout by using 0 or a negative value. The option will be converted to a <code>long</code> type. Default: 30000 Group: producer- Parameters:
timeout
- the value to set- Returns:
- the dsl builder
-
waitForTaskToComplete
default DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointProducerBuilder waitForTaskToComplete(org.apache.camel.WaitForTaskToComplete waitForTaskToComplete)
Option to specify whether the caller should wait for the async task to complete or not before continuing. The following three options are supported: Always, Never or IfReplyExpected. The first two values are self-explanatory. The last value, IfReplyExpected, will only wait if the message is Request Reply based. The option is a: <code>org.apache.camel.WaitForTaskToComplete</code> type. Default: IfReplyExpected Group: producer- Parameters:
waitForTaskToComplete
- the value to set- Returns:
- the dsl builder
-
waitForTaskToComplete
default DisruptorVmEndpointBuilderFactory.DisruptorVmEndpointProducerBuilder waitForTaskToComplete(String waitForTaskToComplete)
Option to specify whether the caller should wait for the async task to complete or not before continuing. The following three options are supported: Always, Never or IfReplyExpected. The first two values are self-explanatory. The last value, IfReplyExpected, will only wait if the message is Request Reply based. The option will be converted to a <code>org.apache.camel.WaitForTaskToComplete</code> type. Default: IfReplyExpected Group: producer- Parameters:
waitForTaskToComplete
- the value to set- Returns:
- the dsl builder
-
-