@Override public void close() throws IOException { if (connectionHandler != null) { for (JedisPool pool : connectionHandler.getNodes().values()) { try { if (pool != null) { pool.destroy(); } } catch (Exception e) { // pass } } } }
public Map<String, JedisPool> getClusterNodes() { return connectionHandler.getNodes(); }