com.lambdaworks.redis.RedisClient.shutdown()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(139)

本文整理了Java中com.lambdaworks.redis.RedisClient.shutdown方法的一些代码示例,展示了RedisClient.shutdown的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RedisClient.shutdown方法的具体详情如下:
包路径:com.lambdaworks.redis.RedisClient
类名称:RedisClient
方法名:shutdown

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;
  }
}

相关文章