Skip to content

Commit

Permalink
[other] fix javadoc error.
Browse files Browse the repository at this point in the history
  • Loading branch information
heimuheimu committed Nov 28, 2019
1 parent 424a857 commit 0b10ad6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ public class StandardRedisNodeRouter implements Closeable {
* @param slowExecutionThreshold Redis 操作过慢最小时间,单位:毫秒,不能小于等于 0
* @param pingPeriod PING 命令发送时间间隔,单位:秒,用于心跳检测,如果该值小于等于 0,则不进行心跳检测
* @param listener Redis 直连客户端列表事件监听器,允许为 {@code null}
* @param isSlaveActive 是否启用 Redis 集群中的 Slave 节点,用于执行已读操作
* @throws IllegalStateException 如果 Redis 集群节点信息加载失败或所有的 Redis 直连客户端均不可用,将会抛出此异常
*/
public StandardRedisNodeRouter(String[] bootstrapHosts, SocketConfiguration configuration, int timeout,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ public void onError() {

/**
* 对 Redis 分布式锁释放成功的次数进行监控。
*
* @param holdingTime Redis 分布式锁被持有的时间
*/
public void onUnlockSuccess(long holdingTime) {
unlockSuccessCount.incrementAndGet();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public class RedisPublishClient implements Closeable {
* @param slowExecutionThreshold Redis 操作过慢最小时间,单位:毫秒,不能小于等于 0
* @param pingPeriod PING 命令发送时间间隔,单位:秒。用于心跳检测,如果该值小于等于 0,则不进行心跳检测
* @param transcoder Java 对象与字节数组转换器,如果传 {@code null},将会使用 {@link SimpleTranscoder} 转换器,compressionThreshold 默认为 64 KB
* @param unusableServiceNotifier RedisPublishClient 不可用通知器,允许为 {@code null}
* @throws IllegalStateException 如果 RedisPublishClient 创建过程中发生错误,将会抛出此异常
*/
@SuppressWarnings("Duplicates")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public static String[] getSlaveRedisHosts() {
/**
* 获得用于单元测试使用的 Redis 集群启动主机地址数组。
*
* @returnRedis 集群启动主机地址数组
* @return Redis 集群启动主机地址数组
*/
public static String[] getClusterBootstrapHosts() {
String hosts = PROPERTIES.getProperty("redis.standard.cluster.bootstrap.hosts");
Expand Down

0 comments on commit 0b10ad6

Please sign in to comment.