List of usage examples for org.springframework.data.redis.connection RedisNode asString
public String asString()
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; }