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 connectTimeout) |
RedisClient(io.netty.channel.EventLoopGroup group,
Class<? extends io.netty.channel.socket.SocketChannel> socketChannelClass,
String host,
int port,
int connectTimeout,
int commandTimeout) |
RedisClient(io.netty.channel.EventLoopGroup group,
String host,
int port) |
RedisClient(io.netty.channel.EventLoopGroup group,
URI address) |
RedisClient(String address) |
RedisClient(String host,
int port) |
RedisClient(URI address) |
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() |
long |
getCommandTimeout() |
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 address)
public RedisClient(URI address)
public RedisClient(io.netty.channel.EventLoopGroup group, URI address)
public RedisClient(String host, int port)
public RedisClient(io.netty.channel.EventLoopGroup group, String host, int port)
public RedisClient(io.netty.channel.EventLoopGroup group, Class<? extends io.netty.channel.socket.SocketChannel> socketChannelClass, String host, int port, int connectTimeout)
public InetSocketAddress getAddr()
public long getCommandTimeout()
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.