public class RedisClient extends Object
Constructor and Description |
---|
RedisClient(String address) |
RedisClient(String host,
int port) |
RedisClient(String host,
int port,
int connectTimeout,
int commandTimeout) |
RedisClient(io.netty.util.Timer timer,
ExecutorService executor,
io.netty.channel.EventLoopGroup group,
Class<? extends io.netty.channel.socket.SocketChannel> socketChannelClass,
String host,
int port,
int connectTimeout,
int commandTimeout) |
RedisClient(io.netty.util.Timer timer,
ExecutorService executor,
io.netty.channel.EventLoopGroup group,
String host,
int port) |
RedisClient(io.netty.util.Timer timer,
ExecutorService executor,
io.netty.channel.EventLoopGroup group,
URI address) |
RedisClient(URI address) |
Modifier and Type | Method and Description |
---|---|
RedisConnection |
connect() |
RFuture<RedisConnection> |
connectAsync() |
RedisPubSubConnection |
connectPubSub() |
RFuture<RedisPubSubConnection> |
connectPubSubAsync() |
InetSocketAddress |
getAddr() |
io.netty.bootstrap.Bootstrap |
getBootstrap() |
long |
getCommandTimeout() |
Map<String,String> |
serverInfo()
Execute INFO SERVER operation.
|
RFuture<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.util.Timer timer, ExecutorService executor, io.netty.channel.EventLoopGroup group, URI address)
public RedisClient(String host, int port)
public RedisClient(io.netty.util.Timer timer, ExecutorService executor, io.netty.channel.EventLoopGroup group, String host, int port)
public RedisClient(String host, int port, int connectTimeout, int commandTimeout)
public RedisClient(io.netty.util.Timer timer, ExecutorService executor, io.netty.channel.EventLoopGroup group, Class<? extends io.netty.channel.socket.SocketChannel> socketChannelClass, String host, int port, int connectTimeout, int commandTimeout)
public InetSocketAddress getAddr()
public long getCommandTimeout()
public io.netty.bootstrap.Bootstrap getBootstrap()
public RedisConnection connect()
public RFuture<RedisConnection> connectAsync()
public RedisPubSubConnection connectPubSub()
public RFuture<RedisPubSubConnection> connectPubSubAsync()
public void shutdown()
public io.netty.channel.group.ChannelGroupFuture shutdownAsync()
public Map<String,String> serverInfo()
public RFuture<Map<String,String>> serverInfoAsync()
Copyright © 2014–2016 The Redisson Project. All rights reserved.