Interface Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder
- All Superinterfaces:
ComponentBuilder<org.apache.camel.component.etcd3.Etcd3Component>
- All Known Implementing Classes:
Etcd3ComponentBuilderFactory.Etcd3ComponentBuilderImpl
- Enclosing interface:
Etcd3ComponentBuilderFactory
public static interface Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder
extends ComponentBuilder<org.apache.camel.component.etcd3.Etcd3Component>
Builder for the Etcd v3 component.
-
Method Summary
Modifier and TypeMethodDescriptionauthHeaders
(Map<String, String> authHeaders) Configure the headers to be added to auth request headers.Configure the authority used to authenticate connections to servers.autowiredEnabled
(boolean autowiredEnabled) Whether autowiring is enabled.bridgeErrorHandler
(boolean bridgeErrorHandler) Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler.configuration
(org.apache.camel.component.etcd3.Etcd3Configuration configuration) Component configuration.connectionTimeout
(Duration connectionTimeout) Configure the connection timeout.Configure etcd server endpoints using the IPNameResolver.fromIndex
(long fromIndex) The index to watch from.Configure the headers to be added to http request headers.keepAliveTime
(Duration keepAliveTime) Configure the interval for gRPC keepalives.keepAliveTimeout
(Duration keepAliveTimeout) Configure the timeout for gRPC keepalives.keyCharset
(String keyCharset) Configure the charset to use for the keys.lazyStartProducer
(boolean lazyStartProducer) Whether the producer should be started lazy (on the first message).loadBalancerPolicy
(String loadBalancerPolicy) Configure etcd load balancer policy.maxInboundMessageSize
(Integer maxInboundMessageSize) Configure the maximum message size allowed for a single gRPC frame.Configure the namespace of keys used.Configure etcd auth password.prefix
(boolean prefix) To apply an action on all the key-value pairs whose key that starts with the target path.retryDelay
(long retryDelay) Configure the delay between retries in milliseconds.retryMaxDelay
(long retryMaxDelay) Configure the max backing off delay between retries in milliseconds.retryMaxDuration
(Duration retryMaxDuration) Configure the retries max duration.servicePath
(String servicePath) The path to look for service discovery.sslContext
(io.netty.handler.ssl.SslContext sslContext) Configure SSL/TLS context to use instead of the system default.Configure etcd auth user.valueCharset
(String valueCharset) Configure the charset to use for the values.Methods inherited from interface org.apache.camel.builder.component.ComponentBuilder
build, build, doSetProperty, register
-
Method Details
-
configuration
default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder configuration(org.apache.camel.component.etcd3.Etcd3Configuration configuration) Component configuration. The option is a: <code>org.apache.camel.component.etcd3.Etcd3Configuration</code> type. Group: common- Parameters:
configuration
- the value to set- Returns:
- the dsl builder
-
endpoints
Configure etcd server endpoints using the IPNameResolver. The option is a: <code>java.lang.String[]</code> type. Default: Etcd3Constants.ETCD_DEFAULT_ENDPOINTS Group: common- Parameters:
endpoints
- the value to set- Returns:
- the dsl builder
-
keyCharset
Configure the charset to use for the keys. The option is a: <code>java.lang.String</code> type. Default: UTF-8 Group: common- Parameters:
keyCharset
- the value to set- Returns:
- the dsl builder
-
namespace
Configure the namespace of keys used. / will be treated as no namespace. The option is a: <code>java.lang.String</code> type. Group: common- Parameters:
namespace
- the value to set- Returns:
- the dsl builder
-
prefix
To apply an action on all the key-value pairs whose key that starts with the target path. The option is a: <code>boolean</code> type. Default: false Group: common- Parameters:
prefix
- the value to set- Returns:
- the dsl builder
-
bridgeErrorHandler
default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder bridgeErrorHandler(boolean bridgeErrorHandler) Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. Important: This is only possible if the 3rd party component allows Camel to be alerted if an exception was thrown. Some components handle this internally only, and therefore bridgeErrorHandler is not possible. In other situations we may improve the Camel component to hook into the 3rd party component and make this possible for future releases. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option is a: <code>boolean</code> type. Default: false Group: consumer- Parameters:
bridgeErrorHandler
- the value to set- Returns:
- the dsl builder
-
fromIndex
The index to watch from. The option is a: <code>long</code> type. Default: 0 Group: consumer (advanced)- Parameters:
fromIndex
- the value to set- Returns:
- the dsl builder
-
lazyStartProducer
default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder 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- Parameters:
lazyStartProducer
- the value to set- Returns:
- the dsl builder
-
valueCharset
Configure the charset to use for the values. The option is a: <code>java.lang.String</code> type. Default: UTF-8 Group: producer- Parameters:
valueCharset
- the value to set- Returns:
- the dsl builder
-
authHeaders
default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder authHeaders(Map<String, String> authHeaders) Configure the headers to be added to auth request headers. The option is a: <code>java.util.Map<java.lang.String, java.lang.String></code> type. Group: advanced- Parameters:
authHeaders
- the value to set- Returns:
- the dsl builder
-
authority
Configure the authority used to authenticate connections to servers. The option is a: <code>java.lang.String</code> type. Group: advanced- Parameters:
authority
- the value to set- Returns:
- the dsl builder
-
autowiredEnabled
default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder autowiredEnabled(boolean autowiredEnabled) Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. The option is a: <code>boolean</code> type. Default: true Group: advanced- Parameters:
autowiredEnabled
- the value to set- Returns:
- the dsl builder
-
connectionTimeout
default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder connectionTimeout(Duration connectionTimeout) Configure the connection timeout. The option is a: <code>java.time.Duration</code> type. Group: advanced- Parameters:
connectionTimeout
- the value to set- Returns:
- the dsl builder
-
headers
Configure the headers to be added to http request headers. The option is a: <code>java.util.Map<java.lang.String, java.lang.String></code> type. Group: advanced- Parameters:
headers
- the value to set- Returns:
- the dsl builder
-
keepAliveTime
Configure the interval for gRPC keepalives. The current minimum allowed by gRPC is 10 seconds. The option is a: <code>java.time.Duration</code> type. Default: 30 seconds Group: advanced- Parameters:
keepAliveTime
- the value to set- Returns:
- the dsl builder
-
keepAliveTimeout
default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder keepAliveTimeout(Duration keepAliveTimeout) Configure the timeout for gRPC keepalives. The option is a: <code>java.time.Duration</code> type. Default: 10 seconds Group: advanced- Parameters:
keepAliveTimeout
- the value to set- Returns:
- the dsl builder
-
loadBalancerPolicy
default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder loadBalancerPolicy(String loadBalancerPolicy) Configure etcd load balancer policy. The option is a: <code>java.lang.String</code> type. Group: advanced- Parameters:
loadBalancerPolicy
- the value to set- Returns:
- the dsl builder
-
maxInboundMessageSize
default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder maxInboundMessageSize(Integer maxInboundMessageSize) Configure the maximum message size allowed for a single gRPC frame. The option is a: <code>java.lang.Integer</code> type. Group: advanced- Parameters:
maxInboundMessageSize
- the value to set- Returns:
- the dsl builder
-
retryDelay
Configure the delay between retries in milliseconds. The option is a: <code>long</code> type. Default: 500 Group: advanced- Parameters:
retryDelay
- the value to set- Returns:
- the dsl builder
-
retryMaxDelay
Configure the max backing off delay between retries in milliseconds. The option is a: <code>long</code> type. Default: 2500 Group: advanced- Parameters:
retryMaxDelay
- the value to set- Returns:
- the dsl builder
-
retryMaxDuration
default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder retryMaxDuration(Duration retryMaxDuration) Configure the retries max duration. The option is a: <code>java.time.Duration</code> type. Group: advanced- Parameters:
retryMaxDuration
- the value to set- Returns:
- the dsl builder
-
servicePath
The path to look for service discovery. The option is a: <code>java.lang.String</code> type. Default: /services/ Group: cloud- Parameters:
servicePath
- the value to set- Returns:
- the dsl builder
-
password
Configure etcd auth password. The option is a: <code>java.lang.String</code> type. Group: security- Parameters:
password
- the value to set- Returns:
- the dsl builder
-
sslContext
default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder sslContext(io.netty.handler.ssl.SslContext sslContext) Configure SSL/TLS context to use instead of the system default. The option is a: <code>io.netty.handler.ssl.SslContext</code> type. Group: security- Parameters:
sslContext
- the value to set- Returns:
- the dsl builder
-
userName
Configure etcd auth user. The option is a: <code>java.lang.String</code> type. Group: security- Parameters:
userName
- the value to set- Returns:
- the dsl builder
-