Package org.redisson.connection.pool
Class PubSubConnectionPool
java.lang.Object
org.redisson.connection.pool.PubSubConnectionPool
- Direct Known Subclasses:
MasterPubSubConnectionPool
Connection pool for Publish / Subscribe
- Author:
- Nikita Koksharov
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPubSubConnectionPool
(MasterSlaveServersConfig config, ConnectionManager connectionManager, MasterSlaveEntry masterSlaveEntry) -
Method Summary
Modifier and TypeMethodDescriptionprotected final CompletableFuture<RedisPubSubConnection>
acquireConnection
(RedisCommand<?> command, ClientConnectionsEntry entry) protected CompletableFuture<Void>
acquireConnection
(ClientConnectionsEntry entry, RedisCommand<?> command) add
(ClientConnectionsEntry entry) void
addEntry
(ClientConnectionsEntry entry) protected boolean
protected CompletionStage<RedisPubSubConnection>
connect
(ClientConnectionsEntry entry) get()
get
(RedisCommand<?> command) get
(RedisCommand<?> command, ClientConnectionsEntry entry) protected int
protected RedisPubSubConnection
poll
(ClientConnectionsEntry entry, RedisCommand<?> command) protected void
protected void
releaseConnection
(ClientConnectionsEntry entry, RedisPubSubConnection conn) void
returnConnection
(ClientConnectionsEntry entry, RedisPubSubConnection connection) protected boolean
-
Field Details
-
entries
-
-
Constructor Details
-
PubSubConnectionPool
public PubSubConnectionPool(MasterSlaveServersConfig config, ConnectionManager connectionManager, MasterSlaveEntry masterSlaveEntry)
-
-
Method Details
-
get
-
poll
-
getMinimumIdleSize
-
connect
-
acquireConnection
protected CompletableFuture<Void> acquireConnection(ClientConnectionsEntry entry, RedisCommand<?> command) -
releaseConnection
-
releaseConnection
-
changeUsage
protected boolean changeUsage() -
add
-
addEntry
-
initConnections
-
get
-
get
public CompletableFuture<RedisPubSubConnection> get(RedisCommand<?> command, ClientConnectionsEntry entry) -
acquireConnection
protected final CompletableFuture<RedisPubSubConnection> acquireConnection(RedisCommand<?> command, ClientConnectionsEntry entry) -
tryAcquireConnection
-
returnConnection
-