The zookeeper component allows interaction with a ZooKeeper cluster.
Name | Kind | Group | Required | Default | Type | Enum | Description |
---|---|---|---|---|---|---|---|
serverUrls | path | common | true | java.lang.String | The zookeeper server hosts (multiple servers can be separated by comma) | ||
path | path | common | true | java.lang.String | The node in the ZooKeeper server (aka znode) | ||
awaitExistence | parameter | common | true | boolean | Not in use @deprecated The usage of this option has no effect at all. | ||
listChildren | parameter | common | boolean | Whether the children of the node should be listed | |||
timeout | parameter | common | 5000 | int | The time interval to wait on connection before timing out. | ||
backoff | parameter | consumer | 5000 | long | The time interval to backoff for after an error before retrying. | ||
bridgeErrorHandler | parameter | consumer | boolean | 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/ERROR level and ignored. | |||
repeat | parameter | consumer | boolean | Should changes to the znode be 'watched' and repeatedly processed. | |||
sendEmptyMessageOnDelete | parameter | consumer | true | boolean | Upon the delete of a znode, should an empty message be send to the consumer | ||
exceptionHandler | parameter | consumer (advanced) | org.apache.camel.spi.ExceptionHandler | To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this options is not in use. By default the consumer will deal with exceptions, that will be logged at WARN/ERROR level and ignored. | |||
exchangePattern | parameter | consumer (advanced) | org.apache.camel.ExchangePattern | InOnly RobustInOnly InOut InOptionalOut OutOnly RobustOutOnly OutIn OutOptionalIn |
Sets the exchange pattern when the consumer creates an exchange. | ||
create | parameter | producer | boolean | Should the endpoint create the node if it does not currently exist. | |||
createMode | parameter | producer | EPHEMERAL | java.lang.String | PERSISTENT PERSISTENT_SEQUENTIAL EPHEMERAL EPHEMERAL_SEQUENTIAL |
The create mode that should be used for the newly created node | |
synchronous | parameter | advanced | false | boolean | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). |
ZooKeeperConsumer
uses various {@link ZooKeeperOperation} to
interact and consume data from a ZooKeeper cluster.