Example usage for org.springframework.data.redis.connection RedisNode asString

List of usage examples for org.springframework.data.redis.connection RedisNode asString

Introduction

In this page you can find the example usage for org.springframework.data.redis.connection RedisNode asString.

Prototype

public String asString() 

Source Link

Usage

From source file:org.solq.dht.db.redis.service.JedisConnectionFactory.java

private Set<String> convertToJedisSentinelSet(Collection<RedisNode> nodes) {

    if (CollectionUtils.isEmpty(nodes)) {
        return Collections.emptySet();
    }//from w  ww . ja  v  a  2 s. co m

    Set<String> convertedNodes = new LinkedHashSet<String>(nodes.size());
    for (RedisNode node : nodes) {
        if (node != null) {
            convertedNodes.add(node.asString());
        }
    }
    return convertedNodes;
}