Interface NatsEndpointBuilderFactory.AdvancedNatsEndpointBuilder
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder,org.apache.camel.EndpointConsumerResolver,org.apache.camel.builder.EndpointProducerBuilder,org.apache.camel.EndpointProducerResolver,NatsEndpointBuilderFactory.AdvancedNatsEndpointConsumerBuilder,NatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder
- Enclosing interface:
NatsEndpointBuilderFactory
public static interface NatsEndpointBuilderFactory.AdvancedNatsEndpointBuilder
extends NatsEndpointBuilderFactory.AdvancedNatsEndpointConsumerBuilder, NatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder
Advanced builder for endpoint for the Nats component.
-
Method Summary
Modifier and TypeMethodDescriptionbasic()connection(io.nats.client.Connection connection) Reference an already instantiated connection to Nats server.connection(String connection) Reference an already instantiated connection to Nats server.consumerConfiguration(io.nats.client.api.ConsumerConfiguration consumerConfiguration) Sets a custom ConsumerConfiguration object for the JetStream consumer.consumerConfiguration(String consumerConfiguration) Sets a custom ConsumerConfiguration object for the JetStream consumer.durableName(String durableName) Sets the name to assign to the JetStream durable consumer.headerFilterStrategy(String headerFilterStrategy) To use a custom header filter strategy.headerFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy) To use a custom header filter strategy.jetstreamAsync(boolean jetstreamAsync) Sets whether to operate JetStream requests asynchronously.jetstreamAsync(String jetstreamAsync) Sets whether to operate JetStream requests asynchronously.pullSubscription(boolean pullSubscription) Sets the consumer subscription type for JetStream.pullSubscription(String pullSubscription) Sets the consumer subscription type for JetStream.traceConnection(boolean traceConnection) Whether or not connection trace messages should be printed to standard out for fine grained debugging of connection issues.traceConnection(String traceConnection) Whether or not connection trace messages should be printed to standard out for fine grained debugging of connection issues.Methods inherited from interface org.apache.camel.builder.EndpointConsumerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUriMethods inherited from interface org.apache.camel.EndpointConsumerResolver
resolve, resolveMethods inherited from interface org.apache.camel.builder.EndpointProducerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUriMethods inherited from interface org.apache.camel.EndpointProducerResolver
resolve, resolveMethods inherited from interface org.apache.camel.builder.endpoint.dsl.NatsEndpointBuilderFactory.AdvancedNatsEndpointConsumerBuilder
bridgeErrorHandler, bridgeErrorHandler, exceptionHandler, exceptionHandler, exchangePattern, exchangePatternMethods inherited from interface org.apache.camel.builder.endpoint.dsl.NatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder
lazyStartProducer, lazyStartProducer
-
Method Details
-
basic
- Specified by:
basicin interfaceNatsEndpointBuilderFactory.AdvancedNatsEndpointConsumerBuilder- Specified by:
basicin interfaceNatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder
-
connection
default NatsEndpointBuilderFactory.AdvancedNatsEndpointBuilder connection(io.nats.client.Connection connection) Reference an already instantiated connection to Nats server. The option is a:io.nats.client.Connectiontype. Group: advanced- Specified by:
connectionin interfaceNatsEndpointBuilderFactory.AdvancedNatsEndpointConsumerBuilder- Specified by:
connectionin interfaceNatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder- Parameters:
connection- the value to set- Returns:
- the dsl builder
-
connection
Reference an already instantiated connection to Nats server. The option will be converted to aio.nats.client.Connectiontype. Group: advanced- Specified by:
connectionin interfaceNatsEndpointBuilderFactory.AdvancedNatsEndpointConsumerBuilder- Specified by:
connectionin interfaceNatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder- Parameters:
connection- the value to set- Returns:
- the dsl builder
-
consumerConfiguration
default NatsEndpointBuilderFactory.AdvancedNatsEndpointBuilder consumerConfiguration(io.nats.client.api.ConsumerConfiguration consumerConfiguration) Sets a custom ConsumerConfiguration object for the JetStream consumer. This is an advanced option typically used when you need to configure properties not exposed as simple Camel URI parameters. When set, this object will be used to build the final consumer subscription options. The option is a:io.nats.client.api.ConsumerConfigurationtype. Group: advanced- Specified by:
consumerConfigurationin interfaceNatsEndpointBuilderFactory.AdvancedNatsEndpointConsumerBuilder- Specified by:
consumerConfigurationin interfaceNatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder- Parameters:
consumerConfiguration- the value to set- Returns:
- the dsl builder
-
consumerConfiguration
default NatsEndpointBuilderFactory.AdvancedNatsEndpointBuilder consumerConfiguration(String consumerConfiguration) Sets a custom ConsumerConfiguration object for the JetStream consumer. This is an advanced option typically used when you need to configure properties not exposed as simple Camel URI parameters. When set, this object will be used to build the final consumer subscription options. The option will be converted to aio.nats.client.api.ConsumerConfigurationtype. Group: advanced- Specified by:
consumerConfigurationin interfaceNatsEndpointBuilderFactory.AdvancedNatsEndpointConsumerBuilder- Specified by:
consumerConfigurationin interfaceNatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder- Parameters:
consumerConfiguration- the value to set- Returns:
- the dsl builder
-
durableName
Sets the name to assign to the JetStream durable consumer. Setting this value makes the consumer durable. The value is used to set the durable() field in the underlying NATS ConsumerConfiguration.Builder. The option is a:java.lang.Stringtype. Group: advanced- Specified by:
durableNamein interfaceNatsEndpointBuilderFactory.AdvancedNatsEndpointConsumerBuilder- Specified by:
durableNamein interfaceNatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder- Parameters:
durableName- the value to set- Returns:
- the dsl builder
-
headerFilterStrategy
default NatsEndpointBuilderFactory.AdvancedNatsEndpointBuilder headerFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy) To use a custom header filter strategy. The option is a:org.apache.camel.spi.HeaderFilterStrategytype. Group: advanced- Specified by:
headerFilterStrategyin interfaceNatsEndpointBuilderFactory.AdvancedNatsEndpointConsumerBuilder- Specified by:
headerFilterStrategyin interfaceNatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder- Parameters:
headerFilterStrategy- the value to set- Returns:
- the dsl builder
-
headerFilterStrategy
default NatsEndpointBuilderFactory.AdvancedNatsEndpointBuilder headerFilterStrategy(String headerFilterStrategy) To use a custom header filter strategy. The option will be converted to aorg.apache.camel.spi.HeaderFilterStrategytype. Group: advanced- Specified by:
headerFilterStrategyin interfaceNatsEndpointBuilderFactory.AdvancedNatsEndpointConsumerBuilder- Specified by:
headerFilterStrategyin interfaceNatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder- Parameters:
headerFilterStrategy- the value to set- Returns:
- the dsl builder
-
jetstreamAsync
default NatsEndpointBuilderFactory.AdvancedNatsEndpointBuilder jetstreamAsync(boolean jetstreamAsync) Sets whether to operate JetStream requests asynchronously. The option is a:booleantype. Default: true Group: advanced- Specified by:
jetstreamAsyncin interfaceNatsEndpointBuilderFactory.AdvancedNatsEndpointConsumerBuilder- Specified by:
jetstreamAsyncin interfaceNatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder- Parameters:
jetstreamAsync- the value to set- Returns:
- the dsl builder
-
jetstreamAsync
default NatsEndpointBuilderFactory.AdvancedNatsEndpointBuilder jetstreamAsync(String jetstreamAsync) Sets whether to operate JetStream requests asynchronously. The option will be converted to abooleantype. Default: true Group: advanced- Specified by:
jetstreamAsyncin interfaceNatsEndpointBuilderFactory.AdvancedNatsEndpointConsumerBuilder- Specified by:
jetstreamAsyncin interfaceNatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder- Parameters:
jetstreamAsync- the value to set- Returns:
- the dsl builder
-
pullSubscription
default NatsEndpointBuilderFactory.AdvancedNatsEndpointBuilder pullSubscription(boolean pullSubscription) Sets the consumer subscription type for JetStream. Set to true to use a Pull Subscription (consumer explicitly requests messages). Set to false to use a Push Subscription (messages are automatically delivered). The option is a:booleantype. Default: true Group: advanced- Specified by:
pullSubscriptionin interfaceNatsEndpointBuilderFactory.AdvancedNatsEndpointConsumerBuilder- Specified by:
pullSubscriptionin interfaceNatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder- Parameters:
pullSubscription- the value to set- Returns:
- the dsl builder
-
pullSubscription
default NatsEndpointBuilderFactory.AdvancedNatsEndpointBuilder pullSubscription(String pullSubscription) Sets the consumer subscription type for JetStream. Set to true to use a Pull Subscription (consumer explicitly requests messages). Set to false to use a Push Subscription (messages are automatically delivered). The option will be converted to abooleantype. Default: true Group: advanced- Specified by:
pullSubscriptionin interfaceNatsEndpointBuilderFactory.AdvancedNatsEndpointConsumerBuilder- Specified by:
pullSubscriptionin interfaceNatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder- Parameters:
pullSubscription- the value to set- Returns:
- the dsl builder
-
traceConnection
default NatsEndpointBuilderFactory.AdvancedNatsEndpointBuilder traceConnection(boolean traceConnection) Whether or not connection trace messages should be printed to standard out for fine grained debugging of connection issues. The option is a:booleantype. Default: false Group: advanced- Specified by:
traceConnectionin interfaceNatsEndpointBuilderFactory.AdvancedNatsEndpointConsumerBuilder- Specified by:
traceConnectionin interfaceNatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder- Parameters:
traceConnection- the value to set- Returns:
- the dsl builder
-
traceConnection
default NatsEndpointBuilderFactory.AdvancedNatsEndpointBuilder traceConnection(String traceConnection) Whether or not connection trace messages should be printed to standard out for fine grained debugging of connection issues. The option will be converted to abooleantype. Default: false Group: advanced- Specified by:
traceConnectionin interfaceNatsEndpointBuilderFactory.AdvancedNatsEndpointConsumerBuilder- Specified by:
traceConnectionin interfaceNatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder- Parameters:
traceConnection- the value to set- Returns:
- the dsl builder
-