|
|
@ -49,7 +49,7 @@ public class RedisClient {
|
|
|
|
private final long timeout;
|
|
|
|
private final long timeout;
|
|
|
|
|
|
|
|
|
|
|
|
public RedisClient(String host, int port) {
|
|
|
|
public RedisClient(String host, int port) {
|
|
|
|
this(new NioEventLoopGroup(), NioSocketChannel.class, host, port, 60*1000);
|
|
|
|
this(new NioEventLoopGroup(), NioSocketChannel.class, host, port, 60 * 1000);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public RedisClient(EventLoopGroup group, Class<? extends SocketChannel> socketChannelClass, String host, int port, int timeout) {
|
|
|
|
public RedisClient(EventLoopGroup group, Class<? extends SocketChannel> socketChannelClass, String host, int port, int timeout) {
|
|
|
@ -138,6 +138,7 @@ public class RedisClient {
|
|
|
|
|
|
|
|
|
|
|
|
public void shutdown() {
|
|
|
|
public void shutdown() {
|
|
|
|
shutdownAsync().syncUninterruptibly();
|
|
|
|
shutdownAsync().syncUninterruptibly();
|
|
|
|
|
|
|
|
bootstrap.group().shutdownGracefully();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public ChannelGroupFuture shutdownAsync() {
|
|
|
|
public ChannelGroupFuture shutdownAsync() {
|
|
|
@ -150,4 +151,3 @@ public class RedisClient {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|