See: Description
Class | Description |
---|---|
JsonObjectSerializer | |
ZookeeperServiceImporter |
A service importer retrieving services from Zookeeper.
|
examples.Examples#register(io.vertx.core.Vertx)
----
Only the `connection` configuration is mandatory. It's the connection _string_ of the Zookeeper server.
In addition you can configure:
* `maxRetries`: the number of connection attempt, 3 by default
* `baseSleepTimeBetweenRetries`: the amount of milliseconds to wait between retries (exponential backoff strategy).
1000 ms by default.
* `basePath`: the Zookeeper path in which the service are stored. Default to `/discovery`.
* `connectionTimeoutMs`: the connection timeout in milliseconds. Defaults to 1000.
* `canBeReadOnly` : whether or not the backend support the _read-only_ mode (defaults to true)
[source,$lang]
----
examples.Examples#register2(io.vertx.core.Vertx)
----Copyright © 2017. All rights reserved.