Package org.redisson.connection.pool
Class MasterPubSubConnectionPool
- java.lang.Object
-
- org.redisson.connection.pool.PubSubConnectionPool
-
- org.redisson.connection.pool.MasterPubSubConnectionPool
-
public class MasterPubSubConnectionPool extends PubSubConnectionPool
Connection pool for Publish/Subscribe used with single node- Author:
- Nikita Koksharov
-
-
Field Summary
Fields Modifier and Type Field Description protected Queue<ClientConnectionsEntry>entries
-
Constructor Summary
Constructors Constructor Description MasterPubSubConnectionPool(MasterSlaveServersConfig config, ConnectionManager connectionManager, MasterSlaveEntry masterSlaveEntry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RFuture<T>acquireConnection(RedisCommand<?> command, ClientConnectionsEntry entry)RFuture<Void>add(ClientConnectionsEntry entry)RFuture<RedisPubSubConnection>get(RedisCommand<?> command)RFuture<T>get(RedisCommand<?> command, ClientConnectionsEntry entry)RPromise<Void>initConnections(ClientConnectionsEntry entry)voidremove(ClientConnectionsEntry entry)voidreturnConnection(ClientConnectionsEntry entry, T connection)protected booleantryAcquireConnection(ClientConnectionsEntry entry)-
Methods inherited from class org.redisson.connection.pool.PubSubConnectionPool
acquireConnection, connect, get, getMinimumIdleSize, poll, releaseConnection, releaseConnection
-
-
-
-
Field Detail
-
entries
protected final Queue<ClientConnectionsEntry> entries
-
-
Constructor Detail
-
MasterPubSubConnectionPool
public MasterPubSubConnectionPool(MasterSlaveServersConfig config, ConnectionManager connectionManager, MasterSlaveEntry masterSlaveEntry)
-
-
Method Detail
-
get
public RFuture<RedisPubSubConnection> get(RedisCommand<?> command)
-
remove
public void remove(ClientConnectionsEntry entry)
-
add
public RFuture<Void> add(ClientConnectionsEntry entry)
-
initConnections
public RPromise<Void> initConnections(ClientConnectionsEntry entry)
-
get
public RFuture<T> get(RedisCommand<?> command, ClientConnectionsEntry entry)
-
acquireConnection
protected final RFuture<T> acquireConnection(RedisCommand<?> command, ClientConnectionsEntry entry)
-
tryAcquireConnection
protected boolean tryAcquireConnection(ClientConnectionsEntry entry)
-
returnConnection
public void returnConnection(ClientConnectionsEntry entry, T connection)
-
-