org.redisson.api.NodesGroup Java Examples

The following examples show how to use org.redisson.api.NodesGroup. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RedisCache.java    From gcp-token-broker with Apache License 2.0 5 votes vote down vote up
@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());
    }
}
 
Example #2
Source File: TracingRedissonClient.java    From java-redis-client with Apache License 2.0 4 votes vote down vote up
@Override
public NodesGroup<Node> getNodesGroup() {
  return redissonClient.getNodesGroup();
}