Interface SedaEndpointBuilderFactory.SedaEndpointProducerBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder,org.apache.camel.EndpointProducerResolver
- All Known Subinterfaces:
SedaEndpointBuilderFactory.SedaEndpointBuilder
- Enclosing interface:
- SedaEndpointBuilderFactory
public static interface SedaEndpointBuilderFactory.SedaEndpointProducerBuilder extends org.apache.camel.builder.EndpointProducerBuilderBuilder for endpoint producers for the SEDA component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default SedaEndpointBuilderFactory.AdvancedSedaEndpointProducerBuilderadvanced()default SedaEndpointBuilderFactory.SedaEndpointProducerBuilderblockWhenFull(boolean blockWhenFull)Whether a thread that sends messages to a full SEDA queue will block until the queue's capacity is no longer exhausted.default SedaEndpointBuilderFactory.SedaEndpointProducerBuilderblockWhenFull(String blockWhenFull)Whether a thread that sends messages to a full SEDA queue will block until the queue's capacity is no longer exhausted.default SedaEndpointBuilderFactory.SedaEndpointProducerBuilderdiscardIfNoConsumers(boolean discardIfNoConsumers)Whether the producer should discard the message (do not add the message to the queue), when sending to a queue with no active consumers.default SedaEndpointBuilderFactory.SedaEndpointProducerBuilderdiscardIfNoConsumers(String discardIfNoConsumers)Whether the producer should discard the message (do not add the message to the queue), when sending to a queue with no active consumers.default SedaEndpointBuilderFactory.SedaEndpointProducerBuilderdiscardWhenFull(boolean discardWhenFull)Whether a thread that sends messages to a full SEDA queue will be discarded.default SedaEndpointBuilderFactory.SedaEndpointProducerBuilderdiscardWhenFull(String discardWhenFull)Whether a thread that sends messages to a full SEDA queue will be discarded.default SedaEndpointBuilderFactory.SedaEndpointProducerBuilderfailIfNoConsumers(boolean failIfNoConsumers)Whether the producer should fail by throwing an exception, when sending to a queue with no active consumers.default SedaEndpointBuilderFactory.SedaEndpointProducerBuilderfailIfNoConsumers(String failIfNoConsumers)Whether the producer should fail by throwing an exception, when sending to a queue with no active consumers.default SedaEndpointBuilderFactory.SedaEndpointProducerBuilderofferTimeout(long offerTimeout)Offer timeout (in milliseconds) can be added to the block case when queue is full.default SedaEndpointBuilderFactory.SedaEndpointProducerBuilderofferTimeout(String offerTimeout)Offer timeout (in milliseconds) can be added to the block case when queue is full.default SedaEndpointBuilderFactory.SedaEndpointProducerBuildersize(int size)The maximum capacity of the SEDA queue (i.e., the number of messages it can hold).default SedaEndpointBuilderFactory.SedaEndpointProducerBuildersize(String size)The maximum capacity of the SEDA queue (i.e., the number of messages it can hold).default SedaEndpointBuilderFactory.SedaEndpointProducerBuildertimeout(long timeout)Timeout (in milliseconds) before a SEDA producer will stop waiting for an asynchronous task to complete.default SedaEndpointBuilderFactory.SedaEndpointProducerBuildertimeout(String timeout)Timeout (in milliseconds) before a SEDA producer will stop waiting for an asynchronous task to complete.default SedaEndpointBuilderFactory.SedaEndpointProducerBuilderwaitForTaskToComplete(String waitForTaskToComplete)Option to specify whether the caller should wait for the async task to complete or not before continuing.default SedaEndpointBuilderFactory.SedaEndpointProducerBuilderwaitForTaskToComplete(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 SedaEndpointBuilderFactory.AdvancedSedaEndpointProducerBuilder advanced()
-
size
default SedaEndpointBuilderFactory.SedaEndpointProducerBuilder size(int size)
The maximum capacity of the SEDA queue (i.e., the number of messages it can hold). Will by default use the defaultSize set on the SEDA component. The option is a: <code>int</code> type. Default: 1000 Group: common- Parameters:
size- the value to set- Returns:
- the dsl builder
-
size
default SedaEndpointBuilderFactory.SedaEndpointProducerBuilder size(String size)
The maximum capacity of the SEDA queue (i.e., the number of messages it can hold). Will by default use the defaultSize set on the SEDA component. The option will be converted to a <code>int</code> type. Default: 1000 Group: common- Parameters:
size- the value to set- Returns:
- the dsl builder
-
blockWhenFull
default SedaEndpointBuilderFactory.SedaEndpointProducerBuilder blockWhenFull(boolean blockWhenFull)
Whether a thread that sends messages to a full SEDA queue will block until the queue's capacity is no longer exhausted. By default, an exception will be thrown stating that the queue is full. By enabling this option, the calling thread will instead block and wait until the message can be accepted. The option is a: <code>boolean</code> type. Default: false Group: producer- Parameters:
blockWhenFull- the value to set- Returns:
- the dsl builder
-
blockWhenFull
default SedaEndpointBuilderFactory.SedaEndpointProducerBuilder blockWhenFull(String blockWhenFull)
Whether a thread that sends messages to a full SEDA queue will block until the queue's capacity is no longer exhausted. By default, an exception will be thrown stating that the queue is full. By enabling this option, the calling thread will instead block and wait until the message can be accepted. 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
-
discardIfNoConsumers
default SedaEndpointBuilderFactory.SedaEndpointProducerBuilder discardIfNoConsumers(boolean discardIfNoConsumers)
Whether the producer should discard the message (do not add the message to the queue), when sending to a queue with no active consumers. Only one of the options discardIfNoConsumers and failIfNoConsumers can be enabled at the same time. The option is a: <code>boolean</code> type. Default: false Group: producer- Parameters:
discardIfNoConsumers- the value to set- Returns:
- the dsl builder
-
discardIfNoConsumers
default SedaEndpointBuilderFactory.SedaEndpointProducerBuilder discardIfNoConsumers(String discardIfNoConsumers)
Whether the producer should discard the message (do not add the message to the queue), when sending to a queue with no active consumers. Only one of the options discardIfNoConsumers and failIfNoConsumers can be enabled at the same time. The option will be converted to a <code>boolean</code> type. Default: false Group: producer- Parameters:
discardIfNoConsumers- the value to set- Returns:
- the dsl builder
-
discardWhenFull
default SedaEndpointBuilderFactory.SedaEndpointProducerBuilder discardWhenFull(boolean discardWhenFull)
Whether a thread that sends messages to a full SEDA queue will be discarded. By default, an exception will be thrown stating that the queue is full. By enabling this option, the calling thread will give up sending and continue, meaning that the message was not sent to the SEDA queue. The option is a: <code>boolean</code> type. Default: false Group: producer- Parameters:
discardWhenFull- the value to set- Returns:
- the dsl builder
-
discardWhenFull
default SedaEndpointBuilderFactory.SedaEndpointProducerBuilder discardWhenFull(String discardWhenFull)
Whether a thread that sends messages to a full SEDA queue will be discarded. By default, an exception will be thrown stating that the queue is full. By enabling this option, the calling thread will give up sending and continue, meaning that the message was not sent to the SEDA queue. The option will be converted to a <code>boolean</code> type. Default: false Group: producer- Parameters:
discardWhenFull- the value to set- Returns:
- the dsl builder
-
failIfNoConsumers
default SedaEndpointBuilderFactory.SedaEndpointProducerBuilder failIfNoConsumers(boolean failIfNoConsumers)
Whether the producer should fail by throwing an exception, when sending to a queue with no active consumers. Only one of the options discardIfNoConsumers and failIfNoConsumers can be enabled at the same time. The option is a: <code>boolean</code> type. Default: false Group: producer- Parameters:
failIfNoConsumers- the value to set- Returns:
- the dsl builder
-
failIfNoConsumers
default SedaEndpointBuilderFactory.SedaEndpointProducerBuilder failIfNoConsumers(String failIfNoConsumers)
Whether the producer should fail by throwing an exception, when sending to a queue with no active consumers. Only one of the options discardIfNoConsumers and failIfNoConsumers can be enabled at the same time. The option will be converted to a <code>boolean</code> type. Default: false Group: producer- Parameters:
failIfNoConsumers- the value to set- Returns:
- the dsl builder
-
offerTimeout
default SedaEndpointBuilderFactory.SedaEndpointProducerBuilder offerTimeout(long offerTimeout)
Offer timeout (in milliseconds) can be added to the block case when queue is full. You can disable timeout by using 0 or a negative value. The option is a: <code>long</code> type. Group: producer- Parameters:
offerTimeout- the value to set- Returns:
- the dsl builder
-
offerTimeout
default SedaEndpointBuilderFactory.SedaEndpointProducerBuilder offerTimeout(String offerTimeout)
Offer timeout (in milliseconds) can be added to the block case when queue is full. You can disable timeout by using 0 or a negative value. The option will be converted to a <code>long</code> type. Group: producer- Parameters:
offerTimeout- the value to set- Returns:
- the dsl builder
-
timeout
default SedaEndpointBuilderFactory.SedaEndpointProducerBuilder timeout(long timeout)
Timeout (in milliseconds) before a SEDA 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 SedaEndpointBuilderFactory.SedaEndpointProducerBuilder timeout(String timeout)
Timeout (in milliseconds) before a SEDA 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 SedaEndpointBuilderFactory.SedaEndpointProducerBuilder 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 default option is IfReplyExpected. 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 SedaEndpointBuilderFactory.SedaEndpointProducerBuilder 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 default option is IfReplyExpected. 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
-
-