本文整理了Java中com.lambdaworks.redis.RedisClient.shutdown
方法的一些代码示例,展示了RedisClient.shutdown
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RedisClient.shutdown
方法的具体详情如下:
包路径:com.lambdaworks.redis.RedisClient
类名称:RedisClient
方法名:shutdown
[英]Shutdown this client and close all open connections. The client should be discarded after calling shutdown.
[中]关闭此客户端并关闭所有打开的连接。调用shutdown后应丢弃客户端。
代码示例来源:origin: org.apache.apex/malhar-contrib
@Override
public void disconnect() throws IOException
{
client.shutdown();
connection = null;
}
代码示例来源:origin: apache/apex-malhar
@Override
public void disconnect() throws IOException
{
client.shutdown();
connection = null;
}
代码示例来源:origin: danhyun/modern-java-web
@Override
public void onStop(StopEvent event) throws Exception {
connection.close();
client.shutdown();
}
};
代码示例来源:origin: longkerdandy/mithqtt
@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();
}
}
代码示例来源:origin: longkerdandy/mithqtt
@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();
}
}
代码示例来源:origin: longkerdandy/mithqtt
@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();
}
代码示例来源:origin: yahoo/sherlock
/**
* Shutdown the clients.
*/
public void destroy() {
if (redisClient != null) {
redisClient.shutdown();
redisClient = null;
}
if (redisClusterClient != null) {
redisClusterClient.shutdown();
redisClusterClient = null;
}
}
内容来源于网络,如有侵权,请联系作者删除!