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