Interface ReactiveStreamsEndpointBuilderFactory.ReactiveStreamsEndpointConsumerBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder
,org.apache.camel.EndpointConsumerResolver
- All Known Subinterfaces:
ReactiveStreamsEndpointBuilderFactory.ReactiveStreamsEndpointBuilder
- Enclosing interface:
- ReactiveStreamsEndpointBuilderFactory
public static interface ReactiveStreamsEndpointBuilderFactory.ReactiveStreamsEndpointConsumerBuilder extends org.apache.camel.builder.EndpointConsumerBuilder
Builder for endpoint consumers for the Reactive Streams component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default ReactiveStreamsEndpointBuilderFactory.AdvancedReactiveStreamsEndpointConsumerBuilder
advanced()
default ReactiveStreamsEndpointBuilderFactory.ReactiveStreamsEndpointConsumerBuilder
concurrentConsumers(int concurrentConsumers)
Number of threads used to process exchanges in the Camel route.default ReactiveStreamsEndpointBuilderFactory.ReactiveStreamsEndpointConsumerBuilder
concurrentConsumers(String concurrentConsumers)
Number of threads used to process exchanges in the Camel route.default ReactiveStreamsEndpointBuilderFactory.ReactiveStreamsEndpointConsumerBuilder
exchangesRefillLowWatermark(double exchangesRefillLowWatermark)
Set the low watermark of requested exchanges to the active subscription as percentage of the maxInflightExchanges.default ReactiveStreamsEndpointBuilderFactory.ReactiveStreamsEndpointConsumerBuilder
exchangesRefillLowWatermark(String exchangesRefillLowWatermark)
Set the low watermark of requested exchanges to the active subscription as percentage of the maxInflightExchanges.default ReactiveStreamsEndpointBuilderFactory.ReactiveStreamsEndpointConsumerBuilder
forwardOnComplete(boolean forwardOnComplete)
Determines if onComplete events should be pushed to the Camel route.default ReactiveStreamsEndpointBuilderFactory.ReactiveStreamsEndpointConsumerBuilder
forwardOnComplete(String forwardOnComplete)
Determines if onComplete events should be pushed to the Camel route.default ReactiveStreamsEndpointBuilderFactory.ReactiveStreamsEndpointConsumerBuilder
forwardOnError(boolean forwardOnError)
Determines if onError events should be pushed to the Camel route.default ReactiveStreamsEndpointBuilderFactory.ReactiveStreamsEndpointConsumerBuilder
forwardOnError(String forwardOnError)
Determines if onError events should be pushed to the Camel route.default ReactiveStreamsEndpointBuilderFactory.ReactiveStreamsEndpointConsumerBuilder
maxInflightExchanges(Integer maxInflightExchanges)
Maximum number of exchanges concurrently being processed by Camel.default ReactiveStreamsEndpointBuilderFactory.ReactiveStreamsEndpointConsumerBuilder
maxInflightExchanges(String maxInflightExchanges)
Maximum number of exchanges concurrently being processed by Camel.
-
-
-
Method Detail
-
advanced
default ReactiveStreamsEndpointBuilderFactory.AdvancedReactiveStreamsEndpointConsumerBuilder advanced()
-
concurrentConsumers
default ReactiveStreamsEndpointBuilderFactory.ReactiveStreamsEndpointConsumerBuilder concurrentConsumers(int concurrentConsumers)
Number of threads used to process exchanges in the Camel route. The option is a: <code>int</code> type. Default: 1 Group: consumer- Parameters:
concurrentConsumers
- the value to set- Returns:
- the dsl builder
-
concurrentConsumers
default ReactiveStreamsEndpointBuilderFactory.ReactiveStreamsEndpointConsumerBuilder concurrentConsumers(String concurrentConsumers)
Number of threads used to process exchanges in the Camel route. 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
-
exchangesRefillLowWatermark
default ReactiveStreamsEndpointBuilderFactory.ReactiveStreamsEndpointConsumerBuilder exchangesRefillLowWatermark(double exchangesRefillLowWatermark)
Set the low watermark of requested exchanges to the active subscription as percentage of the maxInflightExchanges. When the number of pending items from the upstream source is lower than the watermark, new items can be requested to the subscription. If set to 0, the subscriber will request items in batches of maxInflightExchanges, only after all items of the previous batch have been processed. If set to 1, the subscriber can request a new item each time an exchange is processed (chatty). Any intermediate value can be used. The option is a: <code>double</code> type. Default: 0.25 Group: consumer- Parameters:
exchangesRefillLowWatermark
- the value to set- Returns:
- the dsl builder
-
exchangesRefillLowWatermark
default ReactiveStreamsEndpointBuilderFactory.ReactiveStreamsEndpointConsumerBuilder exchangesRefillLowWatermark(String exchangesRefillLowWatermark)
Set the low watermark of requested exchanges to the active subscription as percentage of the maxInflightExchanges. When the number of pending items from the upstream source is lower than the watermark, new items can be requested to the subscription. If set to 0, the subscriber will request items in batches of maxInflightExchanges, only after all items of the previous batch have been processed. If set to 1, the subscriber can request a new item each time an exchange is processed (chatty). Any intermediate value can be used. The option will be converted to a <code>double</code> type. Default: 0.25 Group: consumer- Parameters:
exchangesRefillLowWatermark
- the value to set- Returns:
- the dsl builder
-
forwardOnComplete
default ReactiveStreamsEndpointBuilderFactory.ReactiveStreamsEndpointConsumerBuilder forwardOnComplete(boolean forwardOnComplete)
Determines if onComplete events should be pushed to the Camel route. The option is a: <code>boolean</code> type. Default: false Group: consumer- Parameters:
forwardOnComplete
- the value to set- Returns:
- the dsl builder
-
forwardOnComplete
default ReactiveStreamsEndpointBuilderFactory.ReactiveStreamsEndpointConsumerBuilder forwardOnComplete(String forwardOnComplete)
Determines if onComplete events should be pushed to the Camel route. The option will be converted to a <code>boolean</code> type. Default: false Group: consumer- Parameters:
forwardOnComplete
- the value to set- Returns:
- the dsl builder
-
forwardOnError
default ReactiveStreamsEndpointBuilderFactory.ReactiveStreamsEndpointConsumerBuilder forwardOnError(boolean forwardOnError)
Determines if onError events should be pushed to the Camel route. Exceptions will be set as message body. The option is a: <code>boolean</code> type. Default: false Group: consumer- Parameters:
forwardOnError
- the value to set- Returns:
- the dsl builder
-
forwardOnError
default ReactiveStreamsEndpointBuilderFactory.ReactiveStreamsEndpointConsumerBuilder forwardOnError(String forwardOnError)
Determines if onError events should be pushed to the Camel route. Exceptions will be set as message body. The option will be converted to a <code>boolean</code> type. Default: false Group: consumer- Parameters:
forwardOnError
- the value to set- Returns:
- the dsl builder
-
maxInflightExchanges
default ReactiveStreamsEndpointBuilderFactory.ReactiveStreamsEndpointConsumerBuilder maxInflightExchanges(Integer maxInflightExchanges)
Maximum number of exchanges concurrently being processed by Camel. This parameter controls backpressure on the stream. Setting a non-positive value will disable backpressure. The option is a: <code>java.lang.Integer</code> type. Default: 128 Group: consumer- Parameters:
maxInflightExchanges
- the value to set- Returns:
- the dsl builder
-
maxInflightExchanges
default ReactiveStreamsEndpointBuilderFactory.ReactiveStreamsEndpointConsumerBuilder maxInflightExchanges(String maxInflightExchanges)
Maximum number of exchanges concurrently being processed by Camel. This parameter controls backpressure on the stream. Setting a non-positive value will disable backpressure. The option will be converted to a <code>java.lang.Integer</code> type. Default: 128 Group: consumer- Parameters:
maxInflightExchanges
- the value to set- Returns:
- the dsl builder
-
-