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) final voidaddEntry(ClientConnectionsEntry entry) get()get(RedisCommand<?> command) get(RedisCommand<?> command, ClientConnectionsEntry entry) get(ClientConnectionsEntry entry) protected ConnectionsHolder<RedisPubSubConnection> final voidreturnConnection(ClientConnectionsEntry entry, RedisPubSubConnection connection)
-
Field Details
-
entries
-
-
Constructor Details
-
PubSubConnectionPool
public PubSubConnectionPool(MasterSlaveServersConfig config, ConnectionManager connectionManager, MasterSlaveEntry masterSlaveEntry)
-
-
Method Details
-
get
-
get
-
getConnectionHolder
protected ConnectionsHolder<RedisPubSubConnection> getConnectionHolder(ClientConnectionsEntry entry) -
addEntry
-
get
-
get
public CompletableFuture<RedisPubSubConnection> get(RedisCommand<?> command, ClientConnectionsEntry entry) -
acquireConnection
protected final CompletableFuture<RedisPubSubConnection> acquireConnection(RedisCommand<?> command, ClientConnectionsEntry entry) -
returnConnection
-