コード例 #1
0
 @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
       }
     }
   }
 }
コード例 #2
0
 public Map<String, JedisPool> getClusterNodes() {
   return connectionHandler.getNodes();
 }