Fuse 6 is no longer supported
As of February 2025, Red Hat Fuse 6 is no longer supported. If you are using Fuse 6, please upgrade to Red Hat build of Apache Camel.Chapter 42. Etcd
Etcd Component Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
Etcd is a distributed key value store that provides a reliable way to store data across a cluster of machines.
Maven users will need to add the following dependency to their
pom.xml
for this component.
URI format Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
etcd:namespace[/path][?options]
etcd:namespace[/path][?options]
Where namespace represents the etcd context to which the etcd-component should operate and path is an optional attribute to define which node is being impacted.
Supported namespaces are:
keys
watch
stats
Options Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
Name
|
Default Value
|
Description
|
---|---|---|
uris
|
Defines the URIs the component should connect to.
|
|
sslContextParameters
|
null
|
To use a custom org.apache.camel.util.jsse.SSLContextParameters . See Using the JSSE Configuration Utility
|
userName
|
null
|
The user name to use for basic authentication |
password
|
null
|
The password to use for basic authentication |
sendEmptyExchangeOnTimeout
|
false
|
To send an empty message in case of timeout watching for a key (consumer only) |
recursive
|
false
|
To apply an action recursively |
timeToLive
|
null
|
To set the lifespan of a key in milliseconds |
timeout
|
null
|
To set the maximum time an action could take to complete. |
Headers Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
Name | Type | Description |
---|---|---|
CamelEtcdAction
|
java.lang.String
|
The action to perform, supported values are set, delete, deleteDir, get |
CamelEtcdNamespace
|
java.lang.String
|
The etcd context an exchange was generated/processed from
|
CamelEtcdPath
|
java.lang.String
|
For keys namespace, it is used to determine the node subject the the action, if not set the path from URI endpoint is used. For stats and watch namespaces it contains the path of the node beign processed
|
CamelEtcdTimeout
|
java.lang.Long
|
To set the maximum time an action could take to complete. If not present, the timeout option is taken into account
|
CamelEtcdTtl
|
java.lang.Integer
|
To set the lifespan of a key in milliseconds. If not present, the timeToLive option is taken into account
|
CamelEtcdRecursive
|
java.lang.Boolean
|
To apply an action recursively. If not present, the recursive option is taken into account.
|
Keys namespace example: Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
Stats namespace example: Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
Watch namespace example: Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!