public class ConnectionPool<T extends RedisConnection> extends Object
Constructor and Description |
---|
ConnectionPool(MasterSlaveServersConfig config,
LoadBalancer loadBalancer,
ConnectionManager connectionManager,
MasterSlaveEntry masterSlaveEntry) |
Modifier and Type | Method and Description |
---|---|
void |
add(SubscribesConnectionEntry entry) |
protected io.netty.util.concurrent.Future<T> |
connect(SubscribesConnectionEntry entry) |
io.netty.util.concurrent.Future<T> |
get() |
io.netty.util.concurrent.Future<T> |
get(SubscribesConnectionEntry entry) |
protected T |
poll(SubscribesConnectionEntry entry) |
protected void |
releaseConnection(SubscribesConnectionEntry entry) |
protected void |
releaseConnection(SubscribesConnectionEntry entry,
T conn) |
void |
remove(SubscribesConnectionEntry entry) |
void |
returnConnection(SubscribesConnectionEntry entry,
T connection) |
protected boolean |
tryAcquireConnection(SubscribesConnectionEntry entry) |
public ConnectionPool(MasterSlaveServersConfig config, LoadBalancer loadBalancer, ConnectionManager connectionManager, MasterSlaveEntry masterSlaveEntry)
public void add(SubscribesConnectionEntry entry)
public void remove(SubscribesConnectionEntry entry)
public io.netty.util.concurrent.Future<T> get()
public io.netty.util.concurrent.Future<T> get(SubscribesConnectionEntry entry)
protected boolean tryAcquireConnection(SubscribesConnectionEntry entry)
protected T poll(SubscribesConnectionEntry entry)
protected io.netty.util.concurrent.Future<T> connect(SubscribesConnectionEntry entry)
public void returnConnection(SubscribesConnectionEntry entry, T connection)
protected void releaseConnection(SubscribesConnectionEntry entry)
protected void releaseConnection(SubscribesConnectionEntry entry, T conn)
Copyright © 2014–2015. All rights reserved.