public class MasterConnectionPool 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 |
---|
MasterConnectionPool(MasterSlaveServersConfig config,
ConnectionManager connectionManager,
MasterSlaveEntry masterSlaveEntry) |
Modifier and Type | Method and Description |
---|---|
protected void |
acquireConnection(ClientConnectionsEntry entry,
Runnable runnable) |
RFuture<Void> |
add(ClientConnectionsEntry entry) |
protected RFuture<T> |
connect(ClientConnectionsEntry entry) |
RFuture<T> |
get(RedisCommand<?> command) |
RFuture<T> |
get(RedisCommand<?> command,
ClientConnectionsEntry entry) |
protected ClientConnectionsEntry |
getEntry() |
protected int |
getMinimumIdleSize(ClientConnectionsEntry entry) |
protected T |
poll(ClientConnectionsEntry entry) |
protected void |
releaseConnection(ClientConnectionsEntry entry) |
protected void |
releaseConnection(ClientConnectionsEntry entry,
T conn) |
void |
remove(ClientConnectionsEntry entry) |
void |
returnConnection(ClientConnectionsEntry entry,
T connection) |
protected boolean |
tryAcquireConnection(ClientConnectionsEntry entry) |
protected final List<ClientConnectionsEntry> entries
public MasterConnectionPool(MasterSlaveServersConfig config, ConnectionManager connectionManager, MasterSlaveEntry masterSlaveEntry)
protected ClientConnectionsEntry getEntry()
public void remove(ClientConnectionsEntry entry)
protected int getMinimumIdleSize(ClientConnectionsEntry entry)
public RFuture<Void> add(ClientConnectionsEntry entry)
protected void acquireConnection(ClientConnectionsEntry entry, Runnable runnable)
public RFuture<T> get(RedisCommand<?> command)
public RFuture<T> get(RedisCommand<?> command, ClientConnectionsEntry entry)
protected boolean tryAcquireConnection(ClientConnectionsEntry entry)
protected T poll(ClientConnectionsEntry entry)
protected RFuture<T> connect(ClientConnectionsEntry entry)
public void returnConnection(ClientConnectionsEntry entry, T connection)
protected void releaseConnection(ClientConnectionsEntry entry)
protected void releaseConnection(ClientConnectionsEntry entry, T conn)
Copyright © 2014–2017 The Redisson Project. All rights reserved.