Package org.redisson.connection.pool
Class MasterPubSubConnectionPool
java.lang.Object
org.redisson.connection.pool.PubSubConnectionPool
org.redisson.connection.pool.MasterPubSubConnectionPool
Connection pool for Publish/Subscribe used with single node
- Author:
- Nikita Koksharov
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMasterPubSubConnectionPool
(MasterSlaveServersConfig config, ConnectionManager connectionManager, MasterSlaveEntry masterSlaveEntry) -
Method Summary
Modifier and TypeMethodDescriptionprotected final CompletableFuture<RedisPubSubConnection>
acquireConnection
(RedisCommand<?> command, ClientConnectionsEntry entry) void
addEntry
(ClientConnectionsEntry entry) get
(RedisCommand<?> command) get
(RedisCommand<?> command, ClientConnectionsEntry entry) void
remove
(ClientConnectionsEntry entry) void
returnConnection
(ClientConnectionsEntry entry, RedisPubSubConnection connection) Methods inherited from class org.redisson.connection.pool.PubSubConnectionPool
acquireConnection, changeUsage, connect, get, get, getMinimumIdleSize, poll, releaseConnection, releaseConnection
-
Field Details
-
entries
-
-
Constructor Details
-
MasterPubSubConnectionPool
public MasterPubSubConnectionPool(MasterSlaveServersConfig config, ConnectionManager connectionManager, MasterSlaveEntry masterSlaveEntry)
-
-
Method Details
-
get
-
remove
-
addEntry
-
initConnections
-
get
public CompletableFuture<RedisPubSubConnection> get(RedisCommand<?> command, ClientConnectionsEntry entry) -
acquireConnection
protected final CompletableFuture<RedisPubSubConnection> acquireConnection(RedisCommand<?> command, ClientConnectionsEntry entry) -
returnConnection
-