Interface SpringRabbitMQEndpointBuilderFactory.SpringRabbitMQEndpointProducerBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder
,org.apache.camel.EndpointProducerResolver
- All Known Subinterfaces:
SpringRabbitMQEndpointBuilderFactory.SpringRabbitMQEndpointBuilder
- Enclosing interface:
- SpringRabbitMQEndpointBuilderFactory
public static interface SpringRabbitMQEndpointBuilderFactory.SpringRabbitMQEndpointProducerBuilder extends org.apache.camel.builder.EndpointProducerBuilder
Builder for endpoint producers for the Spring RabbitMQ component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default SpringRabbitMQEndpointBuilderFactory.AdvancedSpringRabbitMQEndpointProducerBuilder
advanced()
default SpringRabbitMQEndpointBuilderFactory.SpringRabbitMQEndpointProducerBuilder
confirm(String confirm)
Controls whether to wait for confirms.default SpringRabbitMQEndpointBuilderFactory.SpringRabbitMQEndpointProducerBuilder
confirmTimeout(long confirmTimeout)
Specify the timeout in milliseconds to be used when waiting for a message sent to be confirmed by RabbitMQ when doing send only messaging (InOnly).default SpringRabbitMQEndpointBuilderFactory.SpringRabbitMQEndpointProducerBuilder
confirmTimeout(String confirmTimeout)
Specify the timeout in milliseconds to be used when waiting for a message sent to be confirmed by RabbitMQ when doing send only messaging (InOnly).default SpringRabbitMQEndpointBuilderFactory.SpringRabbitMQEndpointProducerBuilder
connectionFactory(String connectionFactory)
The connection factory to be use.default SpringRabbitMQEndpointBuilderFactory.SpringRabbitMQEndpointProducerBuilder
connectionFactory(org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory)
The connection factory to be use.default SpringRabbitMQEndpointBuilderFactory.SpringRabbitMQEndpointProducerBuilder
disableReplyTo(boolean disableReplyTo)
Specifies whether Camel ignores the ReplyTo header in messages.default SpringRabbitMQEndpointBuilderFactory.SpringRabbitMQEndpointProducerBuilder
disableReplyTo(String disableReplyTo)
Specifies whether Camel ignores the ReplyTo header in messages.default SpringRabbitMQEndpointBuilderFactory.SpringRabbitMQEndpointProducerBuilder
replyTimeout(long replyTimeout)
Specify the timeout in milliseconds to be used when waiting for a reply message when doing request/reply (InOut) messaging.default SpringRabbitMQEndpointBuilderFactory.SpringRabbitMQEndpointProducerBuilder
replyTimeout(String replyTimeout)
Specify the timeout in milliseconds to be used when waiting for a reply message when doing request/reply (InOut) messaging.default SpringRabbitMQEndpointBuilderFactory.SpringRabbitMQEndpointProducerBuilder
routingKey(String routingKey)
The value of a routing key to use.default SpringRabbitMQEndpointBuilderFactory.SpringRabbitMQEndpointProducerBuilder
testConnectionOnStartup(boolean testConnectionOnStartup)
Specifies whether to test the connection on startup.default SpringRabbitMQEndpointBuilderFactory.SpringRabbitMQEndpointProducerBuilder
testConnectionOnStartup(String testConnectionOnStartup)
Specifies whether to test the connection on startup.default SpringRabbitMQEndpointBuilderFactory.SpringRabbitMQEndpointProducerBuilder
usePublisherConnection(boolean usePublisherConnection)
Use a separate connection for publishers and consumers.default SpringRabbitMQEndpointBuilderFactory.SpringRabbitMQEndpointProducerBuilder
usePublisherConnection(String usePublisherConnection)
Use a separate connection for publishers and consumers.
-
-
-
Method Detail
-
advanced
default SpringRabbitMQEndpointBuilderFactory.AdvancedSpringRabbitMQEndpointProducerBuilder advanced()
-
connectionFactory
default SpringRabbitMQEndpointBuilderFactory.SpringRabbitMQEndpointProducerBuilder connectionFactory(org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory)
The connection factory to be use. A connection factory must be configured either on the component or endpoint. The option is a: <code>org.springframework.amqp.rabbit.connection.ConnectionFactory</code> type. Group: common- Parameters:
connectionFactory
- the value to set- Returns:
- the dsl builder
-
connectionFactory
default SpringRabbitMQEndpointBuilderFactory.SpringRabbitMQEndpointProducerBuilder connectionFactory(String connectionFactory)
The connection factory to be use. A connection factory must be configured either on the component or endpoint. The option will be converted to a <code>org.springframework.amqp.rabbit.connection.ConnectionFactory</code> type. Group: common- Parameters:
connectionFactory
- the value to set- Returns:
- the dsl builder
-
disableReplyTo
default SpringRabbitMQEndpointBuilderFactory.SpringRabbitMQEndpointProducerBuilder disableReplyTo(boolean disableReplyTo)
Specifies whether Camel ignores the ReplyTo header in messages. If true, Camel does not send a reply back to the destination specified in the ReplyTo header. You can use this option if you want Camel to consume from a route and you do not want Camel to automatically send back a reply message because another component in your code handles the reply message. You can also use this option if you want to use Camel as a proxy between different message brokers and you want to route message from one system to another. The option is a: <code>boolean</code> type. Default: false Group: common- Parameters:
disableReplyTo
- the value to set- Returns:
- the dsl builder
-
disableReplyTo
default SpringRabbitMQEndpointBuilderFactory.SpringRabbitMQEndpointProducerBuilder disableReplyTo(String disableReplyTo)
Specifies whether Camel ignores the ReplyTo header in messages. If true, Camel does not send a reply back to the destination specified in the ReplyTo header. You can use this option if you want Camel to consume from a route and you do not want Camel to automatically send back a reply message because another component in your code handles the reply message. You can also use this option if you want to use Camel as a proxy between different message brokers and you want to route message from one system to another. The option will be converted to a <code>boolean</code> type. Default: false Group: common- Parameters:
disableReplyTo
- the value to set- Returns:
- the dsl builder
-
routingKey
default SpringRabbitMQEndpointBuilderFactory.SpringRabbitMQEndpointProducerBuilder routingKey(String routingKey)
The value of a routing key to use. Default is empty which is not helpful when using the default (or any direct) exchange, but fine if the exchange is a headers exchange for instance. The option is a: <code>java.lang.String</code> type. Group: common- Parameters:
routingKey
- the value to set- Returns:
- the dsl builder
-
testConnectionOnStartup
default SpringRabbitMQEndpointBuilderFactory.SpringRabbitMQEndpointProducerBuilder testConnectionOnStartup(boolean testConnectionOnStartup)
Specifies whether to test the connection on startup. This ensures that when Camel starts that all the JMS consumers have a valid connection to the JMS broker. If a connection cannot be granted then Camel throws an exception on startup. This ensures that Camel is not started with failed connections. The JMS producers is tested as well. The option is a: <code>boolean</code> type. Default: false Group: common- Parameters:
testConnectionOnStartup
- the value to set- Returns:
- the dsl builder
-
testConnectionOnStartup
default SpringRabbitMQEndpointBuilderFactory.SpringRabbitMQEndpointProducerBuilder testConnectionOnStartup(String testConnectionOnStartup)
Specifies whether to test the connection on startup. This ensures that when Camel starts that all the JMS consumers have a valid connection to the JMS broker. If a connection cannot be granted then Camel throws an exception on startup. This ensures that Camel is not started with failed connections. The JMS producers is tested as well. The option will be converted to a <code>boolean</code> type. Default: false Group: common- Parameters:
testConnectionOnStartup
- the value to set- Returns:
- the dsl builder
-
confirm
default SpringRabbitMQEndpointBuilderFactory.SpringRabbitMQEndpointProducerBuilder confirm(String confirm)
Controls whether to wait for confirms. The connection factory must be configured for publisher confirms and this method. auto = Camel detects if the connection factory uses confirms or not. disabled = Confirms is disabled. enabled = Confirms is enabled. The option is a: <code>java.lang.String</code> type. Default: auto Group: producer- Parameters:
confirm
- the value to set- Returns:
- the dsl builder
-
confirmTimeout
default SpringRabbitMQEndpointBuilderFactory.SpringRabbitMQEndpointProducerBuilder confirmTimeout(long confirmTimeout)
Specify the timeout in milliseconds to be used when waiting for a message sent to be confirmed by RabbitMQ when doing send only messaging (InOnly). The default value is 5 seconds. A negative value indicates an indefinite timeout. The option is a: <code>long</code> type. Default: 5000 Group: producer- Parameters:
confirmTimeout
- the value to set- Returns:
- the dsl builder
-
confirmTimeout
default SpringRabbitMQEndpointBuilderFactory.SpringRabbitMQEndpointProducerBuilder confirmTimeout(String confirmTimeout)
Specify the timeout in milliseconds to be used when waiting for a message sent to be confirmed by RabbitMQ when doing send only messaging (InOnly). The default value is 5 seconds. A negative value indicates an indefinite timeout. The option will be converted to a <code>long</code> type. Default: 5000 Group: producer- Parameters:
confirmTimeout
- the value to set- Returns:
- the dsl builder
-
replyTimeout
default SpringRabbitMQEndpointBuilderFactory.SpringRabbitMQEndpointProducerBuilder replyTimeout(long replyTimeout)
Specify the timeout in milliseconds to be used when waiting for a reply message when doing request/reply (InOut) messaging. The default value is 30 seconds. A negative value indicates an indefinite timeout (Beware that this will cause a memory leak if a reply is not received). The option is a: <code>long</code> type. Default: 30000 Group: producer- Parameters:
replyTimeout
- the value to set- Returns:
- the dsl builder
-
replyTimeout
default SpringRabbitMQEndpointBuilderFactory.SpringRabbitMQEndpointProducerBuilder replyTimeout(String replyTimeout)
Specify the timeout in milliseconds to be used when waiting for a reply message when doing request/reply (InOut) messaging. The default value is 30 seconds. A negative value indicates an indefinite timeout (Beware that this will cause a memory leak if a reply is not received). The option will be converted to a <code>long</code> type. Default: 30000 Group: producer- Parameters:
replyTimeout
- the value to set- Returns:
- the dsl builder
-
usePublisherConnection
default SpringRabbitMQEndpointBuilderFactory.SpringRabbitMQEndpointProducerBuilder usePublisherConnection(boolean usePublisherConnection)
Use a separate connection for publishers and consumers. The option is a: <code>boolean</code> type. Default: false Group: producer- Parameters:
usePublisherConnection
- the value to set- Returns:
- the dsl builder
-
usePublisherConnection
default SpringRabbitMQEndpointBuilderFactory.SpringRabbitMQEndpointProducerBuilder usePublisherConnection(String usePublisherConnection)
Use a separate connection for publishers and consumers. The option will be converted to a <code>boolean</code> type. Default: false Group: producer- Parameters:
usePublisherConnection
- the value to set- Returns:
- the dsl builder
-
-