public class RedisClient extends Object
Constructor and Description |
---|
RedisClient(io.netty.channel.EventLoopGroup group,
Class<? extends io.netty.channel.socket.SocketChannel> socketChannelClass,
String host,
int port,
int timeout) |
RedisClient(String host,
int port) |
Modifier and Type | Method and Description |
---|---|
RedisConnection |
connect() |
io.netty.util.concurrent.Future<RedisConnection> |
connectAsync() |
RedisPubSubConnection |
connectPubSub() |
io.netty.util.concurrent.Future<RedisPubSubConnection> |
connectPubSubAsync() |
InetSocketAddress |
getAddr() |
io.netty.bootstrap.Bootstrap |
getBootstrap() |
Map<String,String> |
serverInfo()
Execute INFO SERVER operation.
|
io.netty.util.concurrent.Future<Map<String,String>> |
serverInfoAsync()
Asynchronously execute INFO SERVER operation.
|
void |
shutdown() |
io.netty.channel.group.ChannelGroupFuture |
shutdownAsync() |
String |
toString() |
public RedisClient(String host, int port)
public InetSocketAddress getAddr()
public io.netty.bootstrap.Bootstrap getBootstrap()
public RedisConnection connect()
public io.netty.util.concurrent.Future<RedisConnection> connectAsync()
public RedisPubSubConnection connectPubSub()
public io.netty.util.concurrent.Future<RedisPubSubConnection> connectPubSubAsync()
public void shutdown()
public io.netty.channel.group.ChannelGroupFuture shutdownAsync()
public Map<String,String> serverInfo()
public io.netty.util.concurrent.Future<Map<String,String>> serverInfoAsync()
Copyright © 2014–2016. All rights reserved.