public void close() { pool.close(); }
void shutdown() { this.pool.close(); } }
@Override public void close() { jedisPool.close(); }
@Override public void close() throws IOException { stopping = true; monitorThread.interrupt(); if (null != this.jedisPool){ this.jedisPool.close(); } }
public void closePool() { if (!jedisPool.isClosed()) { jedisPool.close(); } }
@Destroy public void destroy(){ if (null != pool) { pool.close(); } }
@Override public void close() { if (clearAtClose) { try { Jedis jedis = pool.getResource(); jedis.flushDB(); jedis.close(); pool.close(); } catch (Exception e) { throw new NucleusException("Error closing connection to Redis cache", e); } } else { try { pool.close(); } catch (Exception e) { throw new NucleusException("Error closing connection to Redis cache", e); } } }
public void close() { if (clearAtClose) { try { Jedis jedis = pool.getResource(); jedis.flushDB(); jedis.close(); pool.close(); } catch (Exception e) { throw new NucleusException("Could not close connection to Redis cache", e); } } else { try { pool.close(); } catch (Exception e) { throw new NucleusException("Could not close connection to Redis cache", e); } } }
/** * 退出 Redis 发布订阅频道 */ @Override public void disconnect() { try { this.publish(Command.quit()); if(this.isSubscribed()) this.unsubscribe(); } finally { this.client.close(); //subscribeThread will auto terminate } }