gpt4 book ai didi

com.datasift.dropwizard.zookeeper.ZooKeeperFactory.isReadOnly()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-17 22:59:31 26 4
gpt4 key购买 nike

本文整理了Java中com.datasift.dropwizard.zookeeper.ZooKeeperFactory.isReadOnly()方法的一些代码示例,展示了ZooKeeperFactory.isReadOnly()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZooKeeperFactory.isReadOnly()方法的具体详情如下:
包路径:com.datasift.dropwizard.zookeeper.ZooKeeperFactory
类名称:ZooKeeperFactory
方法名:isReadOnly

ZooKeeperFactory.isReadOnly介绍

[英]Returns whether or not this client can connect to read-only ZooKeeper instances.

During a network partition, some or all nodes in the quorum may be in a read-only state. This controls whether the client may enter read-only mode during a network partition.
[中]返回此客户端是否可以连接到只读ZooKeeper实例。
在网络分区期间,仲裁中的部分或所有节点可能处于只读状态。这控制客户端在网络分区期间是否可以进入只读模式。

代码示例

代码示例来源:origin: datasift/dropwizard-extra

.compressionProvider(getCompressionProvider())
.retryPolicy(getRetryPolicy())
.canBeReadOnly(factory.isReadOnly());

代码示例来源:origin: datasift/dropwizard-extra

(int) getSessionTimeout().toMilliseconds(),
watcher,
isReadOnly());

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com