类org.redisson.api.NodesGroup源码实例Demo

下面列出了怎么用org.redisson.api.NodesGroup的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: gcp-token-broker   文件: RedisCache.java
@Override
public CheckResult checkConnection() {
    try {
        NodesGroup nodesGroup = getClient().getNodesGroup();
        nodesGroup.pingAll();
        return new CheckResult(true);
    } catch(Exception e) {
        StringWriter sw = new StringWriter();
        e.printStackTrace(new PrintWriter(sw));
        return new CheckResult(false, sw.toString());
    }
}
 
源代码2 项目: java-redis-client   文件: TracingRedissonClient.java
@Override
public NodesGroup<Node> getNodesGroup() {
  return redissonClient.getNodesGroup();
}
 
 类所在包
 类方法
 同包方法