@Override public void disconnect() throws IOException { client.shutdown(); connection = null; }
@Override public void disconnect() throws IOException { client.shutdown(); connection = null; }
@Override public void onStop(StopEvent event) throws Exception { connection.close(); client.shutdown(); } };
@Override public void destroy() { // shutdown this client and close all open connections if (this.lettuceSentinelConn != null) this.lettuceSentinelConn.close(); if (this.lettuceSentinel != null) this.lettuceSentinel.shutdown(); } }
@Override public void destroy() { // shutdown this client and close all open connections if (this.lettuceMasterSlaveConn != null) this.lettuceMasterSlaveConn.close(); if (this.lettuceMasterSlave != null) this.lettuceMasterSlave.shutdown(); } }
@Override public void destroy() { // shutdown this client and close all open connections if (this.lettuceConn != null) this.lettuceConn.close(); if (this.lettuce != null) this.lettuce.shutdown(); }
/** * Shutdown the clients. */ public void destroy() { if (redisClient != null) { redisClient.shutdown(); redisClient = null; } if (redisClusterClient != null) { redisClusterClient.shutdown(); redisClusterClient = null; } }