Etcd Keys
Since Camel 2.18
Only producer is supported
Since Camel 2.18
The camel Etcd component allows you to work with Etcd, a distributed reliable key-value store.
URI Options
The Etcd Keys component supports 12 options, which are listed below.
Name | Description | Default | Type |
---|---|---|---|
configuration (producer) |
Component configuration. |
EtcdConfiguration |
|
lazyStartProducer (producer) |
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. |
false |
boolean |
recursive (producer) |
To apply an action recursively. |
false |
boolean |
servicePath (producer) |
The path to look for for service discovery |
/services/ |
String |
timeout (producer) |
To set the maximum time an action could take to complete. |
Long |
|
uris (common) |
To set the URIs the client connects. |
String |
|
timeToLive (producer) |
To set the lifespan of a key in milliseconds. |
Integer |
|
autowiredEnabled (advanced) |
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. |
true |
boolean |
password (security) |
The password to use for basic authentication. |
String |
|
sslContextParameters (security) |
To configure security using SSLContextParameters. |
SSLContextParameters |
|
useGlobalSslContextParameters (security) |
Enable usage of global SSL context parameters. |
false |
boolean |
userName (security) |
The user name to use for basic authentication. |
String |
The Etcd Keys endpoint is configured using URI syntax:
etcd-keys:path
with the following path and query parameters:
Path Parameters (1 parameters):
Name | Description | Default | Type |
---|---|---|---|
path |
The path the endpoint refers to |
String |
Query Parameters (9 parameters):
Name | Description | Default | Type |
---|---|---|---|
recursive (producer) |
To apply an action recursively. |
false |
boolean |
servicePath (producer) |
The path to look for for service discovery |
/services/ |
String |
timeout (producer) |
To set the maximum time an action could take to complete. |
Long |
|
uris (common) |
To set the URIs the client connects. |
String |
|
lazyStartProducer (producer) |
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. |
false |
boolean |
timeToLive (producer) |
To set the lifespan of a key in milliseconds. |
Integer |
|
password (security) |
The password to use for basic authentication. |
String |
|
sslContextParameters (security) |
To configure security using SSLContextParameters. |
SSLContextParameters |
|
userName (security) |
The user name to use for basic authentication. |
String |
Spring Boot Auto-Configuration
When using etcd-keys with Spring Boot make sure to use the following Maven dependency to have support for auto configuration:
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-etcd-starter</artifactId>
<version>x.x.x</version>
<!-- use the same version as your Camel core version -->
</dependency>
The component supports 43 options, which are listed below.