public interface ConnectionManager
Modifier and Type | Method and Description |
---|---|
int |
calcSlot(String key) |
io.netty.util.concurrent.Future<RedisConnection> |
connectionReadOp(NodeSource source,
RedisCommand<?> command) |
io.netty.util.concurrent.Future<RedisConnection> |
connectionWriteOp(NodeSource source,
RedisCommand<?> command) |
RedisClient |
createClient(String host,
int port) |
RedisClient |
createClient(String host,
int port,
int timeout) |
<T> io.netty.util.concurrent.FutureListener<T> |
createReleaseReadListener(NodeSource source,
RedisConnection conn,
io.netty.util.Timeout timeout) |
<T> io.netty.util.concurrent.FutureListener<T> |
createReleaseWriteListener(NodeSource source,
RedisConnection conn,
io.netty.util.Timeout timeout) |
Collection<RedisClientEntry> |
getClients() |
Codec |
getCodec() |
MasterSlaveServersConfig |
getConfig() |
Map<ClusterSlotRange,MasterSlaveEntry> |
getEntries() |
MasterSlaveEntry |
getEntry(InetSocketAddress addr) |
io.netty.channel.EventLoopGroup |
getGroup() |
PubSubConnectionEntry |
getPubSubEntry(String channelName) |
InfinitySemaphoreLatch |
getShutdownLatch() |
io.netty.util.HashedWheelTimer |
getTimer() |
<R> io.netty.util.concurrent.Future<R> |
newFailedFuture(Throwable cause) |
<R> io.netty.util.concurrent.Promise<R> |
newPromise() |
io.netty.util.Timeout |
newTimeout(io.netty.util.TimerTask task,
long delay,
TimeUnit unit) |
io.netty.util.concurrent.Future<PubSubConnectionEntry> |
psubscribe(String pattern,
Codec codec) |
Codec |
punsubscribe(String channelName) |
void |
releaseRead(NodeSource source,
RedisConnection connection) |
void |
releaseWrite(NodeSource source,
RedisConnection connection) |
void |
shutdown() |
void |
shutdownAsync(RedisClient client) |
void |
slaveDown(MasterSlaveEntry entry,
String host,
int port,
ConnectionEntry.FreezeReason freezeReason) |
<V> void |
subscribe(RedisPubSubListener<V> listener,
String channelName) |
io.netty.util.concurrent.Future<PubSubConnectionEntry> |
subscribe(String channelName,
Codec codec) |
Codec |
unsubscribe(String channelName) |
<R> io.netty.util.concurrent.Future<R> newFailedFuture(Throwable cause)
void slaveDown(MasterSlaveEntry entry, String host, int port, ConnectionEntry.FreezeReason freezeReason)
Collection<RedisClientEntry> getClients()
void shutdownAsync(RedisClient client)
int calcSlot(String key)
io.netty.util.HashedWheelTimer getTimer()
MasterSlaveServersConfig getConfig()
Codec getCodec()
Map<ClusterSlotRange,MasterSlaveEntry> getEntries()
<R> io.netty.util.concurrent.Promise<R> newPromise()
void releaseRead(NodeSource source, RedisConnection connection)
void releaseWrite(NodeSource source, RedisConnection connection)
io.netty.util.concurrent.Future<RedisConnection> connectionReadOp(NodeSource source, RedisCommand<?> command)
io.netty.util.concurrent.Future<RedisConnection> connectionWriteOp(NodeSource source, RedisCommand<?> command)
<T> io.netty.util.concurrent.FutureListener<T> createReleaseReadListener(NodeSource source, RedisConnection conn, io.netty.util.Timeout timeout)
<T> io.netty.util.concurrent.FutureListener<T> createReleaseWriteListener(NodeSource source, RedisConnection conn, io.netty.util.Timeout timeout)
RedisClient createClient(String host, int port, int timeout)
RedisClient createClient(String host, int port)
MasterSlaveEntry getEntry(InetSocketAddress addr)
PubSubConnectionEntry getPubSubEntry(String channelName)
io.netty.util.concurrent.Future<PubSubConnectionEntry> subscribe(String channelName, Codec codec)
io.netty.util.concurrent.Future<PubSubConnectionEntry> psubscribe(String pattern, Codec codec)
<V> void subscribe(RedisPubSubListener<V> listener, String channelName)
void shutdown()
io.netty.channel.EventLoopGroup getGroup()
io.netty.util.Timeout newTimeout(io.netty.util.TimerTask task, long delay, TimeUnit unit)
InfinitySemaphoreLatch getShutdownLatch()
Copyright © 2014–2015. All rights reserved.