Kotlin DSL for Apache Curator to make ZooKeeper operation easy
Kotlin DSL for Apache Curator to make ZooKeeper operation easy.
The CuratorFramework uses a Fluent-style interface, and it’s good. But DSL will make it easy to read and write.
curator(curatorFramework) {
getStringData("/xxx") {
println(it)
}
lock("/xxx") {
}
}