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) |
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 RPromise<Void> initConnections(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–2020 Redisson. All rights reserved.