public class MasterPubSubConnectionPool extends PubSubConnectionPool
Modifier and Type | Class and Description |
---|---|
static class |
ConnectionPool.AcquireCallback<T> |
Modifier and Type | Field and Description |
---|---|
protected List<ClientConnectionsEntry> |
entries |
Constructor and Description |
---|
MasterPubSubConnectionPool(MasterSlaveServersConfig config,
ConnectionManager connectionManager,
MasterSlaveEntry masterSlaveEntry) |
Modifier and Type | Method and Description |
---|---|
protected RFuture<T> |
acquireConnection(RedisCommand<?> command,
ClientConnectionsEntry entry) |
RFuture<Void> |
add(ClientConnectionsEntry entry) |
RFuture<RedisPubSubConnection> |
get(RedisCommand<?> command) |
RFuture<T> |
get(RedisCommand<?> command,
ClientConnectionsEntry entry) |
RPromise<Void> |
initConnections(ClientConnectionsEntry entry) |
void |
remove(ClientConnectionsEntry entry) |
void |
returnConnection(ClientConnectionsEntry entry,
T connection) |
protected boolean |
tryAcquireConnection(ClientConnectionsEntry entry) |
acquireConnection, connect, get, getMinimumIdleSize, poll, releaseConnection, releaseConnection
protected final List<ClientConnectionsEntry> entries
public MasterPubSubConnectionPool(MasterSlaveServersConfig config, ConnectionManager connectionManager, MasterSlaveEntry masterSlaveEntry)
public RFuture<RedisPubSubConnection> get(RedisCommand<?> command)
public void remove(ClientConnectionsEntry entry)
public RFuture<Void> add(ClientConnectionsEntry entry)
public RPromise<Void> initConnections(ClientConnectionsEntry entry)
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–2019 The Redisson Project. All rights reserved.