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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMasterPubSubConnectionPool(MasterSlaveServersConfig config, ConnectionManager connectionManager, MasterSlaveEntry masterSlaveEntry) -
Method Summary
Modifier and TypeMethodDescriptionprotected final CompletableFuture<RedisPubSubConnection>acquireConnection(RedisCommand<?> command, ClientConnectionsEntry entry) add(ClientConnectionsEntry entry) voidaddEntry(ClientConnectionsEntry entry) get(RedisCommand<?> command) get(RedisCommand<?> command, ClientConnectionsEntry entry) voidremove(ClientConnectionsEntry entry) voidreturnConnection(ClientConnectionsEntry entry, RedisPubSubConnection connection) protected booleanMethods inherited from class org.redisson.connection.pool.PubSubConnectionPool
acquireConnection, changeUsage, connect, get, getMinimumIdleSize, poll, releaseConnection, releaseConnection
-
Field Details
-
entries
-
-
Constructor Details
-
MasterPubSubConnectionPool
public MasterPubSubConnectionPool(MasterSlaveServersConfig config, ConnectionManager connectionManager, MasterSlaveEntry masterSlaveEntry)
-
-
Method Details
-
get
-
remove
-
add
-
addEntry
-
initConnections
-
get
public CompletableFuture<RedisPubSubConnection> get(RedisCommand<?> command, ClientConnectionsEntry entry) -
acquireConnection
protected final CompletableFuture<RedisPubSubConnection> acquireConnection(RedisCommand<?> command, ClientConnectionsEntry entry) -
tryAcquireConnection
-
returnConnection
-