public class MasterConnectionPool extends Object
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 |
---|---|
io.netty.util.concurrent.Future<Void> |
add(ClientConnectionsEntry entry) |
protected io.netty.util.concurrent.Future<T> |
connect(ClientConnectionsEntry entry) |
io.netty.util.concurrent.Future<T> |
get() |
io.netty.util.concurrent.Future<T> |
get(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 io.netty.util.concurrent.Future<Void> add(ClientConnectionsEntry entry)
public io.netty.util.concurrent.Future<T> get()
public io.netty.util.concurrent.Future<T> get(ClientConnectionsEntry entry)
protected boolean tryAcquireConnection(ClientConnectionsEntry entry)
protected T poll(ClientConnectionsEntry entry)
protected io.netty.util.concurrent.Future<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–2016. All rights reserved.