Interface RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder
,org.apache.camel.EndpointProducerResolver
- All Known Subinterfaces:
RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointBuilder
- Enclosing interface:
- RabbitMQEndpointBuilderFactory
public static interface RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder extends org.apache.camel.builder.EndpointProducerBuilder
Advanced builder for endpoint producers for the RabbitMQ component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder
allowMessageBodySerialization(boolean allowMessageBodySerialization)
Whether to allow Java serialization of the message body or not.default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder
allowMessageBodySerialization(String allowMessageBodySerialization)
Whether to allow Java serialization of the message body or not.default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder
args(String key, Object value)
Specify arguments for configuring the different RabbitMQ concepts, a different prefix is required for each: Exchange: arg.exchange.default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder
args(Map values)
Specify arguments for configuring the different RabbitMQ concepts, a different prefix is required for each: Exchange: arg.exchange.default RabbitMQEndpointBuilderFactory.RabbitMQEndpointProducerBuilder
basic()
default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder
clientProperties(String clientProperties)
Connection client properties (client info used in negotiating with the server).default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder
clientProperties(Map<String,Object> clientProperties)
Connection client properties (client info used in negotiating with the server).default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder
connectionFactoryExceptionHandler(com.rabbitmq.client.ExceptionHandler connectionFactoryExceptionHandler)
Custom rabbitmq ExceptionHandler for ConnectionFactory.default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder
connectionFactoryExceptionHandler(String connectionFactoryExceptionHandler)
Custom rabbitmq ExceptionHandler for ConnectionFactory.default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder
connectionTimeout(int connectionTimeout)
Connection timeout.default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder
connectionTimeout(String connectionTimeout)
Connection timeout.default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder
lazyStartProducer(boolean lazyStartProducer)
Whether the producer should be started lazy (on the first message).default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder
lazyStartProducer(String lazyStartProducer)
Whether the producer should be started lazy (on the first message).default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder
networkRecoveryInterval(Integer networkRecoveryInterval)
Network recovery interval in milliseconds (interval used when recovering from network failure).default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder
networkRecoveryInterval(String networkRecoveryInterval)
Network recovery interval in milliseconds (interval used when recovering from network failure).default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder
requestedChannelMax(int requestedChannelMax)
Connection requested channel max (max number of channels offered).default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder
requestedChannelMax(String requestedChannelMax)
Connection requested channel max (max number of channels offered).default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder
requestedFrameMax(int requestedFrameMax)
Connection requested frame max (max size of frame offered).default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder
requestedFrameMax(String requestedFrameMax)
Connection requested frame max (max size of frame offered).default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder
requestedHeartbeat(int requestedHeartbeat)
Connection requested heartbeat (heart-beat in seconds offered).default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder
requestedHeartbeat(String requestedHeartbeat)
Connection requested heartbeat (heart-beat in seconds offered).default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder
requestTimeout(long requestTimeout)
Set timeout for waiting for a reply when using the InOut Exchange Pattern (in milliseconds).default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder
requestTimeout(String requestTimeout)
Set timeout for waiting for a reply when using the InOut Exchange Pattern (in milliseconds).default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder
requestTimeoutCheckerInterval(long requestTimeoutCheckerInterval)
Set requestTimeoutCheckerInterval for inOut exchange.default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder
requestTimeoutCheckerInterval(String requestTimeoutCheckerInterval)
Set requestTimeoutCheckerInterval for inOut exchange.default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder
topologyRecoveryEnabled(Boolean topologyRecoveryEnabled)
Enables connection topology recovery (should topology recovery be performed).default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder
topologyRecoveryEnabled(String topologyRecoveryEnabled)
Enables connection topology recovery (should topology recovery be performed).default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder
transferException(boolean transferException)
When true and an inOut Exchange failed on the consumer side send the caused Exception back in the response.default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder
transferException(String transferException)
When true and an inOut Exchange failed on the consumer side send the caused Exception back in the response.
-
-
-
Method Detail
-
basic
default RabbitMQEndpointBuilderFactory.RabbitMQEndpointProducerBuilder basic()
-
lazyStartProducer
default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder lazyStartProducer(boolean lazyStartProducer)
Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. The option is a: <code>boolean</code> type. Default: false Group: producer (advanced)- Parameters:
lazyStartProducer
- the value to set- Returns:
- the dsl builder
-
lazyStartProducer
default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder lazyStartProducer(String lazyStartProducer)
Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. The option will be converted to a <code>boolean</code> type. Default: false Group: producer (advanced)- Parameters:
lazyStartProducer
- the value to set- Returns:
- the dsl builder
-
allowMessageBodySerialization
default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder allowMessageBodySerialization(boolean allowMessageBodySerialization)
Whether to allow Java serialization of the message body or not. If this value is true, the message body will be serialized on the producer side using Java serialization, if no type converter can handle the message body. On the consumer side, it will deserialize the message body if this value is true and the message contains a CamelSerialize header. Setting this value to true may introduce a security vulnerability as it allows an attacker to attempt to deserialize to a gadget object which could result in a RCE or other security vulnerability. The option is a: <code>boolean</code> type. Default: false Group: advanced- Parameters:
allowMessageBodySerialization
- the value to set- Returns:
- the dsl builder
-
allowMessageBodySerialization
default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder allowMessageBodySerialization(String allowMessageBodySerialization)
Whether to allow Java serialization of the message body or not. If this value is true, the message body will be serialized on the producer side using Java serialization, if no type converter can handle the message body. On the consumer side, it will deserialize the message body if this value is true and the message contains a CamelSerialize header. Setting this value to true may introduce a security vulnerability as it allows an attacker to attempt to deserialize to a gadget object which could result in a RCE or other security vulnerability. The option will be converted to a <code>boolean</code> type. Default: false Group: advanced- Parameters:
allowMessageBodySerialization
- the value to set- Returns:
- the dsl builder
-
args
default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder args(String key, Object value)
Specify arguments for configuring the different RabbitMQ concepts, a different prefix is required for each: Exchange: arg.exchange. Queue: arg.queue. Binding: arg.binding. DLQ: arg.dlq.queue. DLQ binding: arg.dlq.binding. For example to declare a queue with message ttl argument: http://localhost:5672/exchange/queueargs=arg.queue.x-message-ttl=60000. The option is a: <code>java.util.Map<java.lang.String, java.lang.Object></code> type. The option is multivalued, and you can use the args(String, Object) method to add a value (call the method multiple times to set more values). Group: advanced- Parameters:
key
- the option keyvalue
- the option value- Returns:
- the dsl builder
-
args
default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder args(Map values)
Specify arguments for configuring the different RabbitMQ concepts, a different prefix is required for each: Exchange: arg.exchange. Queue: arg.queue. Binding: arg.binding. DLQ: arg.dlq.queue. DLQ binding: arg.dlq.binding. For example to declare a queue with message ttl argument: http://localhost:5672/exchange/queueargs=arg.queue.x-message-ttl=60000. The option is a: <code>java.util.Map<java.lang.String, java.lang.Object></code> type. The option is multivalued, and you can use the args(String, Object) method to add a value (call the method multiple times to set more values). Group: advanced- Parameters:
values
- the values- Returns:
- the dsl builder
-
clientProperties
default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder clientProperties(Map<String,Object> clientProperties)
Connection client properties (client info used in negotiating with the server). The option is a: <code>java.util.Map<java.lang.String, java.lang.Object></code> type. Group: advanced- Parameters:
clientProperties
- the value to set- Returns:
- the dsl builder
-
clientProperties
default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder clientProperties(String clientProperties)
Connection client properties (client info used in negotiating with the server). The option will be converted to a <code>java.util.Map<java.lang.String, java.lang.Object></code> type. Group: advanced- Parameters:
clientProperties
- the value to set- Returns:
- the dsl builder
-
connectionFactoryExceptionHandler
default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder connectionFactoryExceptionHandler(com.rabbitmq.client.ExceptionHandler connectionFactoryExceptionHandler)
Custom rabbitmq ExceptionHandler for ConnectionFactory. The option is a: <code>com.rabbitmq.client.ExceptionHandler</code> type. Group: advanced- Parameters:
connectionFactoryExceptionHandler
- the value to set- Returns:
- the dsl builder
-
connectionFactoryExceptionHandler
default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder connectionFactoryExceptionHandler(String connectionFactoryExceptionHandler)
Custom rabbitmq ExceptionHandler for ConnectionFactory. The option will be converted to a <code>com.rabbitmq.client.ExceptionHandler</code> type. Group: advanced- Parameters:
connectionFactoryExceptionHandler
- the value to set- Returns:
- the dsl builder
-
connectionTimeout
default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder connectionTimeout(int connectionTimeout)
Connection timeout. The option is a: <code>int</code> type. Default: 60000 Group: advanced- Parameters:
connectionTimeout
- the value to set- Returns:
- the dsl builder
-
connectionTimeout
default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder connectionTimeout(String connectionTimeout)
Connection timeout. The option will be converted to a <code>int</code> type. Default: 60000 Group: advanced- Parameters:
connectionTimeout
- the value to set- Returns:
- the dsl builder
-
networkRecoveryInterval
default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder networkRecoveryInterval(Integer networkRecoveryInterval)
Network recovery interval in milliseconds (interval used when recovering from network failure). The option is a: <code>java.lang.Integer</code> type. Default: 5000 Group: advanced- Parameters:
networkRecoveryInterval
- the value to set- Returns:
- the dsl builder
-
networkRecoveryInterval
default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder networkRecoveryInterval(String networkRecoveryInterval)
Network recovery interval in milliseconds (interval used when recovering from network failure). The option will be converted to a <code>java.lang.Integer</code> type. Default: 5000 Group: advanced- Parameters:
networkRecoveryInterval
- the value to set- Returns:
- the dsl builder
-
requestedChannelMax
default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder requestedChannelMax(int requestedChannelMax)
Connection requested channel max (max number of channels offered). The option is a: <code>int</code> type. Default: 2047 Group: advanced- Parameters:
requestedChannelMax
- the value to set- Returns:
- the dsl builder
-
requestedChannelMax
default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder requestedChannelMax(String requestedChannelMax)
Connection requested channel max (max number of channels offered). The option will be converted to a <code>int</code> type. Default: 2047 Group: advanced- Parameters:
requestedChannelMax
- the value to set- Returns:
- the dsl builder
-
requestedFrameMax
default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder requestedFrameMax(int requestedFrameMax)
Connection requested frame max (max size of frame offered). The option is a: <code>int</code> type. Default: 0 Group: advanced- Parameters:
requestedFrameMax
- the value to set- Returns:
- the dsl builder
-
requestedFrameMax
default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder requestedFrameMax(String requestedFrameMax)
Connection requested frame max (max size of frame offered). The option will be converted to a <code>int</code> type. Default: 0 Group: advanced- Parameters:
requestedFrameMax
- the value to set- Returns:
- the dsl builder
-
requestedHeartbeat
default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder requestedHeartbeat(int requestedHeartbeat)
Connection requested heartbeat (heart-beat in seconds offered). The option is a: <code>int</code> type. Default: 60 Group: advanced- Parameters:
requestedHeartbeat
- the value to set- Returns:
- the dsl builder
-
requestedHeartbeat
default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder requestedHeartbeat(String requestedHeartbeat)
Connection requested heartbeat (heart-beat in seconds offered). The option will be converted to a <code>int</code> type. Default: 60 Group: advanced- Parameters:
requestedHeartbeat
- the value to set- Returns:
- the dsl builder
-
requestTimeout
default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder requestTimeout(long requestTimeout)
Set timeout for waiting for a reply when using the InOut Exchange Pattern (in milliseconds). The option is a: <code>long</code> type. Default: 20000 Group: advanced- Parameters:
requestTimeout
- the value to set- Returns:
- the dsl builder
-
requestTimeout
default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder requestTimeout(String requestTimeout)
Set timeout for waiting for a reply when using the InOut Exchange Pattern (in milliseconds). The option will be converted to a <code>long</code> type. Default: 20000 Group: advanced- Parameters:
requestTimeout
- the value to set- Returns:
- the dsl builder
-
requestTimeoutCheckerInterval
default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder requestTimeoutCheckerInterval(long requestTimeoutCheckerInterval)
Set requestTimeoutCheckerInterval for inOut exchange. The option is a: <code>long</code> type. Default: 1000 Group: advanced- Parameters:
requestTimeoutCheckerInterval
- the value to set- Returns:
- the dsl builder
-
requestTimeoutCheckerInterval
default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder requestTimeoutCheckerInterval(String requestTimeoutCheckerInterval)
Set requestTimeoutCheckerInterval for inOut exchange. The option will be converted to a <code>long</code> type. Default: 1000 Group: advanced- Parameters:
requestTimeoutCheckerInterval
- the value to set- Returns:
- the dsl builder
-
topologyRecoveryEnabled
default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder topologyRecoveryEnabled(Boolean topologyRecoveryEnabled)
Enables connection topology recovery (should topology recovery be performed). The option is a: <code>java.lang.Boolean</code> type. Group: advanced- Parameters:
topologyRecoveryEnabled
- the value to set- Returns:
- the dsl builder
-
topologyRecoveryEnabled
default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder topologyRecoveryEnabled(String topologyRecoveryEnabled)
Enables connection topology recovery (should topology recovery be performed). The option will be converted to a <code>java.lang.Boolean</code> type. Group: advanced- Parameters:
topologyRecoveryEnabled
- the value to set- Returns:
- the dsl builder
-
transferException
default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder transferException(boolean transferException)
When true and an inOut Exchange failed on the consumer side send the caused Exception back in the response. The option is a: <code>boolean</code> type. Default: false Group: advanced- Parameters:
transferException
- the value to set- Returns:
- the dsl builder
-
transferException
default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder transferException(String transferException)
When true and an inOut Exchange failed on the consumer side send the caused Exception back in the response. The option will be converted to a <code>boolean</code> type. Default: false Group: advanced- Parameters:
transferException
- the value to set- Returns:
- the dsl builder
-
-