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,
URL address) |
RedisClient(URL 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()
Deprecated.
|
RFuture<Map<String,String>> |
serverInfoAsync()
Deprecated.
|
void |
shutdown() |
io.netty.channel.group.ChannelGroupFuture |
shutdownAsync() |
String |
toString() |
public RedisClient(String address)
public RedisClient(URL address)
public RedisClient(io.netty.util.Timer timer, ExecutorService executor, io.netty.channel.EventLoopGroup group, URL 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()
@Deprecated public Map<String,String> serverInfo()
@Deprecated public RFuture<Map<String,String>> serverInfoAsync()
Copyright © 2014–2017 The Redisson Project. All rights reserved.