Interface NatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder
,org.apache.camel.EndpointProducerResolver
- All Known Subinterfaces:
NatsEndpointBuilderFactory.AdvancedNatsEndpointBuilder
- Enclosing interface:
- NatsEndpointBuilderFactory
public static interface NatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder extends org.apache.camel.builder.EndpointProducerBuilder
Advanced builder for endpoint producers for the Nats component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
basic()
default NatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder
connection(io.nats.client.Connection connection)
Reference an already instantiated connection to Nats server.default NatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder
connection(String connection)
Reference an already instantiated connection to Nats server.default NatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder
headerFilterStrategy(String headerFilterStrategy)
Define the header filtering strategy.default NatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder
headerFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
Define the header filtering strategy.default NatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder
lazyStartProducer(boolean lazyStartProducer)
Whether the producer should be started lazy (on the first message).default NatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder
lazyStartProducer(String lazyStartProducer)
Whether the producer should be started lazy (on the first message).default NatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder
traceConnection(boolean traceConnection)
Whether or not connection trace messages should be printed to standard out for fine grained debugging of connection issues.default NatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder
traceConnection(String traceConnection)
Whether or not connection trace messages should be printed to standard out for fine grained debugging of connection issues.
-
-
-
Method Detail
-
basic
default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder basic()
-
lazyStartProducer
default NatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder 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 NatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder 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
-
connection
default NatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder connection(io.nats.client.Connection connection)
Reference an already instantiated connection to Nats server. The option is a: <code>io.nats.client.Connection</code> type. Group: advanced- Parameters:
connection
- the value to set- Returns:
- the dsl builder
-
connection
default NatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder connection(String connection)
Reference an already instantiated connection to Nats server. The option will be converted to a <code>io.nats.client.Connection</code> type. Group: advanced- Parameters:
connection
- the value to set- Returns:
- the dsl builder
-
headerFilterStrategy
default NatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder headerFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
Define the header filtering strategy. The option is a: <code>org.apache.camel.spi.HeaderFilterStrategy</code> type. Group: advanced- Parameters:
headerFilterStrategy
- the value to set- Returns:
- the dsl builder
-
headerFilterStrategy
default NatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder headerFilterStrategy(String headerFilterStrategy)
Define the header filtering strategy. The option will be converted to a <code>org.apache.camel.spi.HeaderFilterStrategy</code> type. Group: advanced- Parameters:
headerFilterStrategy
- the value to set- Returns:
- the dsl builder
-
traceConnection
default NatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder 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: <code>boolean</code> type. Default: false Group: advanced- Parameters:
traceConnection
- the value to set- Returns:
- the dsl builder
-
traceConnection
default NatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder 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 a <code>boolean</code> type. Default: false Group: advanced- Parameters:
traceConnection
- the value to set- Returns:
- the dsl builder
-
-