public class RedisClient extends Object
Constructor and Description |
---|
RedisClient(String address)
Deprecated.
|
RedisClient(String host,
int port)
Deprecated.
|
RedisClient(String host,
int port,
int connectTimeout,
int commandTimeout)
Deprecated.
|
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)
Deprecated.
|
RedisClient(io.netty.util.Timer timer,
ExecutorService executor,
io.netty.channel.EventLoopGroup group,
String host,
int port)
Deprecated.
|
RedisClient(io.netty.util.Timer timer,
ExecutorService executor,
io.netty.channel.EventLoopGroup group,
URI address)
Deprecated.
|
RedisClient(URI address)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
RedisConnection |
connect() |
RFuture<RedisConnection> |
connectAsync() |
RedisPubSubConnection |
connectPubSub() |
RFuture<RedisPubSubConnection> |
connectPubSubAsync() |
static RedisClient |
create(RedisClientConfig config) |
InetSocketAddress |
getAddr() |
long |
getCommandTimeout() |
RedisClientConfig |
getConfig() |
io.netty.channel.EventLoopGroup |
getEventLoopGroup() |
void |
shutdown() |
io.netty.channel.group.ChannelGroupFuture |
shutdownAsync() |
String |
toString() |
@Deprecated public RedisClient(String address)
@Deprecated public RedisClient(URI address)
@Deprecated public RedisClient(io.netty.util.Timer timer, ExecutorService executor, io.netty.channel.EventLoopGroup group, URI address)
@Deprecated public RedisClient(String host, int port)
@Deprecated public RedisClient(io.netty.util.Timer timer, ExecutorService executor, io.netty.channel.EventLoopGroup group, String host, int port)
@Deprecated public RedisClient(String host, int port, int connectTimeout, int commandTimeout)
@Deprecated 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 static RedisClient create(RedisClientConfig config)
public InetSocketAddress getAddr()
public long getCommandTimeout()
public io.netty.channel.EventLoopGroup getEventLoopGroup()
public RedisClientConfig getConfig()
public RedisConnection connect()
public RFuture<RedisConnection> connectAsync()
public RedisPubSubConnection connectPubSub()
public RFuture<RedisPubSubConnection> connectPubSubAsync()
public void shutdown()
public io.netty.channel.group.ChannelGroupFuture shutdownAsync()
Copyright © 2014–2017 The Redisson Project. All rights reserved.