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
All Methods Instance Methods Default Methods Modifier and Type Method Description default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder
authHeaders(Map<String,String> authHeaders)
Configure the headers to be added to auth request headers.default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder
authority(String authority)
Configure the authority used to authenticate connections to servers.default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder
autowiredEnabled(boolean autowiredEnabled)
Whether autowiring is enabled.default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder
bridgeErrorHandler(boolean bridgeErrorHandler)
Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler.default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder
configuration(org.apache.camel.component.etcd3.Etcd3Configuration configuration)
Component configuration.default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder
connectionTimeout(Duration connectionTimeout)
Configure the connection timeout.default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder
endpoints(String[] endpoints)
Configure etcd server endpoints using the IPNameResolver.default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder
fromIndex(long fromIndex)
The index to watch from.default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder
headers(Map<String,String> headers)
Configure the headers to be added to http request headers.default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder
keepAliveTime(Duration keepAliveTime)
Configure the interval for gRPC keepalives.default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder
keepAliveTimeout(Duration keepAliveTimeout)
Configure the timeout for gRPC keepalives.default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder
keyCharset(String keyCharset)
Configure the charset to use for the keys.default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder
lazyStartProducer(boolean lazyStartProducer)
Whether the producer should be started lazy (on the first message).default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder
loadBalancerPolicy(String loadBalancerPolicy)
Configure etcd load balancer policy.default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder
maxInboundMessageSize(Integer maxInboundMessageSize)
Configure the maximum message size allowed for a single gRPC frame.default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder
namespace(String namespace)
Configure the namespace of keys used.default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder
password(String password)
Configure etcd auth password.default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder
prefix(boolean prefix)
To apply an action on all the key-value pairs whose key that starts with the target path.default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder
retryDelay(long retryDelay)
Configure the delay between retries in milliseconds.default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder
retryMaxDelay(long retryMaxDelay)
Configure the max backing off delay between retries in milliseconds.default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder
retryMaxDuration(Duration retryMaxDuration)
Configure the retries max duration.default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder
servicePath(String servicePath)
The path to look for service discovery.default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder
sslContext(io.netty.handler.ssl.SslContext sslContext)
Configure SSL/TLS context to use instead of the system default.default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder
userName(String userName)
Configure etcd auth user.default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder
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 Detail
-
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
default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder endpoints(String[] 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
default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder keyCharset(String 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
default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder namespace(String 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
default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder prefix(boolean 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 occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. 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
default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder fromIndex(long 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
default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder valueCharset(String 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
default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder authority(String 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
default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder headers(Map<String,String> 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
default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder keepAliveTime(Duration 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
default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder retryDelay(long 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
default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder retryMaxDelay(long 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
default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder servicePath(String 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
default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder password(String 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
default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder userName(String 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
-
-