public class SlaveConnectionPool 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 |
---|
SlaveConnectionPool(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<T> |
connect(ClientConnectionsEntry entry) |
RFuture<T> |
get(RedisCommand<?> command) |
RFuture<T> |
get(RedisCommand<?> command,
ClientConnectionsEntry entry) |
protected int |
getMinimumIdleSize(ClientConnectionsEntry entry) |
RPromise<Void> |
initConnections(ClientConnectionsEntry entry) |
protected T |
poll(ClientConnectionsEntry entry) |
protected void |
releaseConnection(ClientConnectionsEntry entry) |
protected void |
releaseConnection(ClientConnectionsEntry entry,
T conn) |
void |
returnConnection(ClientConnectionsEntry entry,
T connection) |
protected boolean |
tryAcquireConnection(ClientConnectionsEntry entry) |
protected final List<ClientConnectionsEntry> entries
public SlaveConnectionPool(MasterSlaveServersConfig config, ConnectionManager connectionManager, MasterSlaveEntry masterSlaveEntry)
protected int getMinimumIdleSize(ClientConnectionsEntry entry)
public RFuture<Void> add(ClientConnectionsEntry entry)
public RPromise<Void> initConnections(ClientConnectionsEntry entry)
protected void acquireConnection(ClientConnectionsEntry entry, Runnable runnable)
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)
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–2019 The Redisson Project. All rights reserved.