Camel Spring Boot Starter for zookeeper
Spring Boot Auto-Configuration
When using zookeeper 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-zookeeper-starter</artifactId>
<version>x.x.x</version>
<!-- use the same version as your Camel core version -->
</dependency>
The component supports 57 options, which are listed below.
Name | Description | Default | Type |
---|---|---|---|
camel.component.zookeeper.backoff | The time interval to backoff for after an error before retrying. | 5000 | Long |
camel.component.zookeeper.basic-property-binding | Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities | false | Boolean |
camel.component.zookeeper.bridge-error-handler | 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. | false | Boolean |
camel.component.zookeeper.cluster.service.attributes | Custom service attributes. | Map | |
camel.component.zookeeper.cluster.service.auth-info-list | List | ||
camel.component.zookeeper.cluster.service.base-path | String | ||
camel.component.zookeeper.cluster.service.connection-timeout | Long | ||
camel.component.zookeeper.cluster.service.connection-timeout-unit | TimeUnit | ||
camel.component.zookeeper.cluster.service.curator-framework | CuratorFramework | ||
camel.component.zookeeper.cluster.service.enabled | Sets if the zookeeper cluster service should be enabled or not, default is false. | false | Boolean |
camel.component.zookeeper.cluster.service.id | Cluster Service ID | String | |
camel.component.zookeeper.cluster.service.max-close-wait | Long | ||
camel.component.zookeeper.cluster.service.max-close-wait-unit | TimeUnit | ||
camel.component.zookeeper.cluster.service.namespace | String | ||
camel.component.zookeeper.cluster.service.nodes | List | ||
camel.component.zookeeper.cluster.service.order | Service lookup order/priority. | Integer | |
camel.component.zookeeper.cluster.service.reconnect-base-sleep-time | Long | ||
camel.component.zookeeper.cluster.service.reconnect-base-sleep-time-unit | TimeUnit | ||
camel.component.zookeeper.cluster.service.reconnect-max-retries | Integer | ||
camel.component.zookeeper.cluster.service.reconnect-max-sleep-time | Long | ||
camel.component.zookeeper.cluster.service.reconnect-max-sleep-time-unit | TimeUnit | ||
camel.component.zookeeper.cluster.service.retry-policy | RetryPolicy | ||
camel.component.zookeeper.cluster.service.session-timeout | Long | ||
camel.component.zookeeper.cluster.service.session-timeout-unit | TimeUnit | ||
camel.component.zookeeper.configuration | To use a shared ZooKeeperConfiguration. The option is a org.apache.camel.component.zookeeper.ZooKeeperConfiguration type. | String | |
camel.component.zookeeper.create | Should the endpoint create the node if it does not currently exist. | false | Boolean |
camel.component.zookeeper.create-mode | The create mode that should be used for the newly created node | EPHEMERAL | String |
camel.component.zookeeper.enabled | Whether to enable auto configuration of the zookeeper component. This is enabled by default. | Boolean | |
camel.component.zookeeper.lazy-start-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 |
camel.component.zookeeper.list-children | Whether the children of the node should be listed | false | Boolean |
camel.component.zookeeper.repeat | Should changes to the znode be 'watched' and repeatedly processed. | false | Boolean |
camel.component.zookeeper.send-empty-message-on-delete | Upon the delete of a znode, should an empty message be send to the consumer | true | Boolean |
camel.component.zookeeper.service-registry.attributes | Custom service attributes. | Map | |
camel.component.zookeeper.service-registry.auth-info-list | List | ||
camel.component.zookeeper.service-registry.base-path | String | ||
camel.component.zookeeper.service-registry.connection-timeout | Long | ||
camel.component.zookeeper.service-registry.connection-timeout-unit | TimeUnit | ||
camel.component.zookeeper.service-registry.curator-framework | CuratorFramework | ||
camel.component.zookeeper.service-registry.deregister-services-on-stop | Boolean | ||
camel.component.zookeeper.service-registry.enabled | Sets if the zookeeper service registry should be enabled or not, default is false. | false | Boolean |
camel.component.zookeeper.service-registry.id | Service Registry ID | String | |
camel.component.zookeeper.service-registry.max-close-wait | Long | ||
camel.component.zookeeper.service-registry.max-close-wait-unit | TimeUnit | ||
camel.component.zookeeper.service-registry.namespace | String | ||
camel.component.zookeeper.service-registry.nodes | List | ||
camel.component.zookeeper.service-registry.order | Service lookup order/priority. | Integer | |
camel.component.zookeeper.service-registry.override-service-host | Boolean | ||
camel.component.zookeeper.service-registry.reconnect-base-sleep-time | Long | ||
camel.component.zookeeper.service-registry.reconnect-base-sleep-time-unit | TimeUnit | ||
camel.component.zookeeper.service-registry.reconnect-max-retries | Integer | ||
camel.component.zookeeper.service-registry.reconnect-max-sleep-time | Long | ||
camel.component.zookeeper.service-registry.reconnect-max-sleep-time-unit | TimeUnit | ||
camel.component.zookeeper.service-registry.retry-policy | RetryPolicy | ||
camel.component.zookeeper.service-registry.service-host | String | ||
camel.component.zookeeper.service-registry.session-timeout | Long | ||
camel.component.zookeeper.service-registry.session-timeout-unit | TimeUnit | ||
camel.component.zookeeper.timeout | The time interval to wait on connection before timing out. | 5000 | Integer |