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(NodeType type,
String host,
int port) |
RedisClient |
createClient(String host,
int port,
int timeout,
int commandTimeout) |
Collection<RedisClientEntry> |
getClients() |
Codec |
getCodec() |
MasterSlaveServersConfig |
getConfig() |
ConnectionEventsHub |
getConnectionEventsHub() |
IdleConnectionWatcher |
getConnectionWatcher() |
ConnectionInitializer |
getConnectListener() |
MasterSlaveEntry |
getEntry(InetSocketAddress addr) |
MasterSlaveEntry |
getEntry(int slot) |
Set<MasterSlaveEntry> |
getEntrySet() |
io.netty.channel.EventLoopGroup |
getGroup() |
URI |
getLastClusterNode() |
PubSubConnectionEntry |
getPubSubEntry(String channelName) |
AsyncSemaphore |
getSemaphore(String channelName) |
InfinitySemaphoreLatch |
getShutdownLatch() |
io.netty.util.concurrent.Future<Boolean> |
getShutdownPromise() |
boolean |
isClusterMode() |
boolean |
isShutdown() |
boolean |
isShuttingDown() |
<R> io.netty.util.concurrent.Future<R> |
newFailedFuture(Throwable cause) |
<R> io.netty.util.concurrent.Promise<R> |
newPromise() |
<R> io.netty.util.concurrent.Future<R> |
newSucceededFuture(R value) |
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,
RedisPubSubListener<?> listener) |
io.netty.util.concurrent.Future<PubSubConnectionEntry> |
psubscribe(String pattern,
Codec codec,
RedisPubSubListener<?> listener,
AsyncSemaphore semaphore) |
Codec |
punsubscribe(String channelName,
AsyncSemaphore lock) |
io.netty.util.concurrent.Future<Codec> |
punsubscribe(String channelName,
boolean temporaryDown) |
void |
releaseRead(NodeSource source,
RedisConnection connection) |
void |
releaseWrite(NodeSource source,
RedisConnection connection) |
void |
shutdown() |
void |
shutdown(long quietPeriod,
long timeout,
TimeUnit unit) |
void |
shutdownAsync(RedisClient client) |
io.netty.util.concurrent.Future<PubSubConnectionEntry> |
subscribe(Codec codec,
String channelName,
RedisPubSubListener<?> listener) |
io.netty.util.concurrent.Future<PubSubConnectionEntry> |
subscribe(Codec codec,
String channelName,
RedisPubSubListener<?> listener,
AsyncSemaphore semaphore) |
Codec |
unsubscribe(String channelName,
AsyncSemaphore lock) |
io.netty.util.concurrent.Future<Codec> |
unsubscribe(String channelName,
boolean temporaryDown) |
URI getLastClusterNode()
boolean isClusterMode()
AsyncSemaphore getSemaphore(String channelName)
<R> io.netty.util.concurrent.Future<R> newSucceededFuture(R value)
ConnectionEventsHub getConnectionEventsHub()
boolean isShutdown()
boolean isShuttingDown()
io.netty.util.concurrent.Future<PubSubConnectionEntry> subscribe(Codec codec, String channelName, RedisPubSubListener<?> listener)
io.netty.util.concurrent.Future<PubSubConnectionEntry> subscribe(Codec codec, String channelName, RedisPubSubListener<?> listener, AsyncSemaphore semaphore)
ConnectionInitializer getConnectListener()
IdleConnectionWatcher getConnectionWatcher()
<R> io.netty.util.concurrent.Future<R> newFailedFuture(Throwable cause)
Collection<RedisClientEntry> getClients()
void shutdownAsync(RedisClient client)
int calcSlot(String key)
MasterSlaveServersConfig getConfig()
Codec getCodec()
Set<MasterSlaveEntry> getEntrySet()
MasterSlaveEntry getEntry(int slot)
<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)
RedisClient createClient(String host, int port, int timeout, int commandTimeout)
RedisClient createClient(NodeType type, String host, int port)
MasterSlaveEntry getEntry(InetSocketAddress addr)
PubSubConnectionEntry getPubSubEntry(String channelName)
io.netty.util.concurrent.Future<PubSubConnectionEntry> psubscribe(String pattern, Codec codec, RedisPubSubListener<?> listener)
io.netty.util.concurrent.Future<PubSubConnectionEntry> psubscribe(String pattern, Codec codec, RedisPubSubListener<?> listener, AsyncSemaphore semaphore)
Codec unsubscribe(String channelName, AsyncSemaphore lock)
io.netty.util.concurrent.Future<Codec> unsubscribe(String channelName, boolean temporaryDown)
io.netty.util.concurrent.Future<Codec> punsubscribe(String channelName, boolean temporaryDown)
Codec punsubscribe(String channelName, AsyncSemaphore lock)
void shutdown()
void shutdown(long quietPeriod, long timeout, TimeUnit unit)
io.netty.channel.EventLoopGroup getGroup()
io.netty.util.Timeout newTimeout(io.netty.util.TimerTask task, long delay, TimeUnit unit)
InfinitySemaphoreLatch getShutdownLatch()
io.netty.util.concurrent.Future<Boolean> getShutdownPromise()
Copyright © 2014–2016. All rights reserved.