public class PubSubConnectionPool extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ConnectionPool.AcquireCallback<T> |
Modifier and Type | Field and Description |
---|---|
protected List<ClientConnectionsEntry> |
entries |
Constructor and Description |
---|
PubSubConnectionPool(MasterSlaveServersConfig config,
ConnectionManager connectionManager,
MasterSlaveEntry masterSlaveEntry) |
Modifier and Type | Method and Description |
---|---|
protected void |
acquireConnection(ClientConnectionsEntry entry,
Runnable runnable) |
protected RFuture<T> |
acquireConnection(RedisCommand<?> command,
ClientConnectionsEntry entry) |
RFuture<Void> |
add(ClientConnectionsEntry entry) |
protected RFuture<RedisPubSubConnection> |
connect(ClientConnectionsEntry entry) |
RFuture<RedisPubSubConnection> |
get() |
RFuture<T> |
get(RedisCommand<?> command) |
RFuture<T> |
get(RedisCommand<?> command,
ClientConnectionsEntry entry) |
protected int |
getMinimumIdleSize(ClientConnectionsEntry entry) |
protected RedisPubSubConnection |
poll(ClientConnectionsEntry entry) |
protected void |
releaseConnection(ClientConnectionsEntry entry) |
protected void |
releaseConnection(ClientConnectionsEntry entry,
RedisPubSubConnection conn) |
void |
returnConnection(ClientConnectionsEntry entry,
T connection) |
protected boolean |
tryAcquireConnection(ClientConnectionsEntry entry) |
protected final List<ClientConnectionsEntry> entries
public PubSubConnectionPool(MasterSlaveServersConfig config, ConnectionManager connectionManager, MasterSlaveEntry masterSlaveEntry)
public RFuture<RedisPubSubConnection> get()
protected RedisPubSubConnection poll(ClientConnectionsEntry entry)
protected int getMinimumIdleSize(ClientConnectionsEntry entry)
protected RFuture<RedisPubSubConnection> connect(ClientConnectionsEntry entry)
protected void acquireConnection(ClientConnectionsEntry entry, Runnable runnable)
protected void releaseConnection(ClientConnectionsEntry entry)
protected void releaseConnection(ClientConnectionsEntry entry, RedisPubSubConnection conn)
public RFuture<Void> add(ClientConnectionsEntry entry)
public RFuture<T> get(RedisCommand<?> command)
public RFuture<T> get(RedisCommand<?> command, ClientConnectionsEntry entry)
protected final RFuture<T> acquireConnection(RedisCommand<?> command, ClientConnectionsEntry entry)
protected boolean tryAcquireConnection(ClientConnectionsEntry entry)
public void returnConnection(ClientConnectionsEntry entry, T connection)
Copyright © 2014–2018 The Redisson Project. All rights reserved.