Interface SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder,org.apache.camel.EndpointProducerResolver
- All Known Subinterfaces:
SjmsEndpointBuilderFactory.SjmsEndpointBuilder
- Enclosing interface:
- SjmsEndpointBuilderFactory
public static interface SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilder extends org.apache.camel.builder.EndpointProducerBuilderBuilder for endpoint producers for the Simple JMS component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilderacknowledgementMode(String acknowledgementMode)The JMS acknowledgement name, which is one of: SESSION_TRANSACTED, CLIENT_ACKNOWLEDGE, AUTO_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE.default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilderacknowledgementMode(org.apache.camel.component.sjms.jms.SessionAcknowledgementType acknowledgementMode)The JMS acknowledgement name, which is one of: SESSION_TRANSACTED, CLIENT_ACKNOWLEDGE, AUTO_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE.default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointProducerBuilderadvanced()default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilderconnectionFactory(String connectionFactory)The connection factory to be use.default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilderconnectionFactory(javax.jms.ConnectionFactory connectionFactory)The connection factory to be use.default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilderdeliveryMode(Integer deliveryMode)Specifies the delivery mode to be used.default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilderdeliveryMode(String deliveryMode)Specifies the delivery mode to be used.default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilderdeliveryPersistent(boolean deliveryPersistent)Specifies whether persistent delivery is used by default.default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilderdeliveryPersistent(String deliveryPersistent)Specifies whether persistent delivery is used by default.default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilderdisableReplyTo(boolean disableReplyTo)Specifies whether Camel ignores the JMSReplyTo header in messages.default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilderdisableReplyTo(String disableReplyTo)Specifies whether Camel ignores the JMSReplyTo header in messages.default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilderpriority(int priority)Values greater than 1 specify the message priority when sending (where 1 is the lowest priority and 9 is the highest).default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilderpriority(String priority)Values greater than 1 specify the message priority when sending (where 1 is the lowest priority and 9 is the highest).default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilderreplyTo(String replyTo)Provides an explicit ReplyTo destination (overrides any incoming value of Message.getJMSReplyTo() in consumer).default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilderreplyToConcurrentConsumers(int replyToConcurrentConsumers)Specifies the default number of concurrent consumers when doing request/reply over JMS.default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilderreplyToConcurrentConsumers(String replyToConcurrentConsumers)Specifies the default number of concurrent consumers when doing request/reply over JMS.default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilderreplyToOverride(String replyToOverride)Provides an explicit ReplyTo destination in the JMS message, which overrides the setting of replyTo.default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilderreplyToType(String replyToType)Allows for explicitly specifying which kind of strategy to use for replyTo queues when doing request/reply over JMS.default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilderreplyToType(org.apache.camel.component.sjms.ReplyToType replyToType)Allows for explicitly specifying which kind of strategy to use for replyTo queues when doing request/reply over JMS.default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilderrequestTimeout(long requestTimeout)The timeout for waiting for a reply when using the InOut Exchange Pattern (in milliseconds).default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilderrequestTimeout(String requestTimeout)The timeout for waiting for a reply when using the InOut Exchange Pattern (in milliseconds).default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuildertestConnectionOnStartup(boolean testConnectionOnStartup)Specifies whether to test the connection on startup.default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuildertestConnectionOnStartup(String testConnectionOnStartup)Specifies whether to test the connection on startup.default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuildertimeToLive(long timeToLive)When sending messages, specifies the time-to-live of the message (in milliseconds).default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuildertimeToLive(String timeToLive)When sending messages, specifies the time-to-live of the message (in milliseconds).default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuildertransacted(boolean transacted)Specifies whether to use transacted mode.default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuildertransacted(String transacted)Specifies whether to use transacted mode.
-
-
-
Method Detail
-
advanced
default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointProducerBuilder advanced()
-
acknowledgementMode
default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilder acknowledgementMode(org.apache.camel.component.sjms.jms.SessionAcknowledgementType acknowledgementMode)
The JMS acknowledgement name, which is one of: SESSION_TRANSACTED, CLIENT_ACKNOWLEDGE, AUTO_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE. The option is a: <code>org.apache.camel.component.sjms.jms.SessionAcknowledgementType</code> type. Default: AUTO_ACKNOWLEDGE Group: common- Parameters:
acknowledgementMode- the value to set- Returns:
- the dsl builder
-
acknowledgementMode
default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilder acknowledgementMode(String acknowledgementMode)
The JMS acknowledgement name, which is one of: SESSION_TRANSACTED, CLIENT_ACKNOWLEDGE, AUTO_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE. The option will be converted to a <code>org.apache.camel.component.sjms.jms.SessionAcknowledgementType</code> type. Default: AUTO_ACKNOWLEDGE Group: common- Parameters:
acknowledgementMode- the value to set- Returns:
- the dsl builder
-
connectionFactory
default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilder connectionFactory(javax.jms.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>javax.jms.ConnectionFactory</code> type. Group: common- Parameters:
connectionFactory- the value to set- Returns:
- the dsl builder
-
connectionFactory
default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilder 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>javax.jms.ConnectionFactory</code> type. Group: common- Parameters:
connectionFactory- the value to set- Returns:
- the dsl builder
-
disableReplyTo
default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilder disableReplyTo(boolean disableReplyTo)
Specifies whether Camel ignores the JMSReplyTo header in messages. If true, Camel does not send a reply back to the destination specified in the JMSReplyTo 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 SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilder disableReplyTo(String disableReplyTo)
Specifies whether Camel ignores the JMSReplyTo header in messages. If true, Camel does not send a reply back to the destination specified in the JMSReplyTo 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
-
replyTo
default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilder replyTo(String replyTo)
Provides an explicit ReplyTo destination (overrides any incoming value of Message.getJMSReplyTo() in consumer). The option is a: <code>java.lang.String</code> type. Group: common- Parameters:
replyTo- the value to set- Returns:
- the dsl builder
-
testConnectionOnStartup
default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilder 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 SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilder 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
-
deliveryMode
default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilder deliveryMode(Integer deliveryMode)
Specifies the delivery mode to be used. Possible values are those defined by javax.jms.DeliveryMode. NON_PERSISTENT = 1 and PERSISTENT = 2. The option is a: <code>java.lang.Integer</code> type. Group: producer- Parameters:
deliveryMode- the value to set- Returns:
- the dsl builder
-
deliveryMode
default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilder deliveryMode(String deliveryMode)
Specifies the delivery mode to be used. Possible values are those defined by javax.jms.DeliveryMode. NON_PERSISTENT = 1 and PERSISTENT = 2. The option will be converted to a <code>java.lang.Integer</code> type. Group: producer- Parameters:
deliveryMode- the value to set- Returns:
- the dsl builder
-
deliveryPersistent
default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilder deliveryPersistent(boolean deliveryPersistent)
Specifies whether persistent delivery is used by default. The option is a: <code>boolean</code> type. Default: true Group: producer- Parameters:
deliveryPersistent- the value to set- Returns:
- the dsl builder
-
deliveryPersistent
default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilder deliveryPersistent(String deliveryPersistent)
Specifies whether persistent delivery is used by default. The option will be converted to a <code>boolean</code> type. Default: true Group: producer- Parameters:
deliveryPersistent- the value to set- Returns:
- the dsl builder
-
priority
default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilder priority(int priority)
Values greater than 1 specify the message priority when sending (where 1 is the lowest priority and 9 is the highest). The explicitQosEnabled option must also be enabled in order for this option to have any effect. The option is a: <code>int</code> type. Default: 4 Group: producer- Parameters:
priority- the value to set- Returns:
- the dsl builder
-
priority
default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilder priority(String priority)
Values greater than 1 specify the message priority when sending (where 1 is the lowest priority and 9 is the highest). The explicitQosEnabled option must also be enabled in order for this option to have any effect. The option will be converted to a <code>int</code> type. Default: 4 Group: producer- Parameters:
priority- the value to set- Returns:
- the dsl builder
-
replyToConcurrentConsumers
default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilder replyToConcurrentConsumers(int replyToConcurrentConsumers)
Specifies the default number of concurrent consumers when doing request/reply over JMS. See also the maxMessagesPerTask option to control dynamic scaling up/down of threads. The option is a: <code>int</code> type. Default: 1 Group: producer- Parameters:
replyToConcurrentConsumers- the value to set- Returns:
- the dsl builder
-
replyToConcurrentConsumers
default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilder replyToConcurrentConsumers(String replyToConcurrentConsumers)
Specifies the default number of concurrent consumers when doing request/reply over JMS. See also the maxMessagesPerTask option to control dynamic scaling up/down of threads. The option will be converted to a <code>int</code> type. Default: 1 Group: producer- Parameters:
replyToConcurrentConsumers- the value to set- Returns:
- the dsl builder
-
replyToOverride
default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilder replyToOverride(String replyToOverride)
Provides an explicit ReplyTo destination in the JMS message, which overrides the setting of replyTo. It is useful if you want to forward the message to a remote Queue and receive the reply message from the ReplyTo destination. The option is a: <code>java.lang.String</code> type. Group: producer- Parameters:
replyToOverride- the value to set- Returns:
- the dsl builder
-
replyToType
default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilder replyToType(org.apache.camel.component.sjms.ReplyToType replyToType)
Allows for explicitly specifying which kind of strategy to use for replyTo queues when doing request/reply over JMS. Possible values are: Temporary or Exclusive. By default Camel will use temporary queues. However if replyTo has been configured, then Exclusive is used. The option is a: <code>org.apache.camel.component.sjms.ReplyToType</code> type. Group: producer- Parameters:
replyToType- the value to set- Returns:
- the dsl builder
-
replyToType
default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilder replyToType(String replyToType)
Allows for explicitly specifying which kind of strategy to use for replyTo queues when doing request/reply over JMS. Possible values are: Temporary or Exclusive. By default Camel will use temporary queues. However if replyTo has been configured, then Exclusive is used. The option will be converted to a <code>org.apache.camel.component.sjms.ReplyToType</code> type. Group: producer- Parameters:
replyToType- the value to set- Returns:
- the dsl builder
-
requestTimeout
default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilder requestTimeout(long requestTimeout)
The timeout for waiting for a reply when using the InOut Exchange Pattern (in milliseconds). The default is 20 seconds. You can include the header CamelJmsRequestTimeout to override this endpoint configured timeout value, and thus have per message individual timeout values. See also the requestTimeoutCheckerInterval option. The option is a: <code>long</code> type. Default: 20000 Group: producer- Parameters:
requestTimeout- the value to set- Returns:
- the dsl builder
-
requestTimeout
default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilder requestTimeout(String requestTimeout)
The timeout for waiting for a reply when using the InOut Exchange Pattern (in milliseconds). The default is 20 seconds. You can include the header CamelJmsRequestTimeout to override this endpoint configured timeout value, and thus have per message individual timeout values. See also the requestTimeoutCheckerInterval option. The option will be converted to a <code>long</code> type. Default: 20000 Group: producer- Parameters:
requestTimeout- the value to set- Returns:
- the dsl builder
-
timeToLive
default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilder timeToLive(long timeToLive)
When sending messages, specifies the time-to-live of the message (in milliseconds). The option is a: <code>long</code> type. Default: -1 Group: producer- Parameters:
timeToLive- the value to set- Returns:
- the dsl builder
-
timeToLive
default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilder timeToLive(String timeToLive)
When sending messages, specifies the time-to-live of the message (in milliseconds). The option will be converted to a <code>long</code> type. Default: -1 Group: producer- Parameters:
timeToLive- the value to set- Returns:
- the dsl builder
-
transacted
default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilder transacted(boolean transacted)
Specifies whether to use transacted mode. The option is a: <code>boolean</code> type. Default: false Group: transaction- Parameters:
transacted- the value to set- Returns:
- the dsl builder
-
transacted
default SjmsEndpointBuilderFactory.SjmsEndpointProducerBuilder transacted(String transacted)
Specifies whether to use transacted mode. The option will be converted to a <code>boolean</code> type. Default: false Group: transaction- Parameters:
transacted- the value to set- Returns:
- the dsl builder
-
-