We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 493b4aa commit 170cc37Copy full SHA for 170cc37
src/reference/asciidoc/zookeeper.adoc
@@ -84,6 +84,9 @@ In Java configuration you can create an instance of the leader initiator like th
84
----
85
@Bean
86
public LeaderInitiatorFactoryBean leaderInitiator(CuratorFramework client) {
87
- return new LeaderInitiatorFactoryBean(client, "/siTest/", "cluster");
+ return new LeaderInitiatorFactoryBean()
88
+ .setClient(client)
89
+ .setPath("/siTest/")
90
+ .setRole("cluster");
91
}
92
0 commit comments