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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPubSubConnectionPool(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) voidaddEntry(ClientConnectionsEntry entry) protected booleanprotected CompletionStage<RedisPubSubConnection>connect(ClientConnectionsEntry entry) get()get(RedisCommand<?> command) get(RedisCommand<?> command, ClientConnectionsEntry entry) protected intprotected RedisPubSubConnectionpoll(ClientConnectionsEntry entry, RedisCommand<?> command) protected voidprotected voidreleaseConnection(ClientConnectionsEntry entry, RedisPubSubConnection conn) voidreturnConnection(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
-