Package org.redisson.connection.pool
Class MasterConnectionPool
java.lang.Object
org.redisson.connection.pool.MasterConnectionPool
Connection pool for master node
- Author:
- Nikita Koksharov
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMasterConnectionPool
(MasterSlaveServersConfig config, ConnectionManager connectionManager, MasterSlaveEntry masterSlaveEntry) -
Method Summary
Modifier and TypeMethodDescriptionprotected final CompletableFuture
<RedisConnection> acquireConnection
(RedisCommand<?> command, ClientConnectionsEntry entry, boolean trackChanges) final void
addEntry
(ClientConnectionsEntry entry) get
(RedisCommand<?> command, boolean trackChanges) get
(RedisCommand<?> command, ClientConnectionsEntry entry, boolean trackChanges) protected ConnectionsHolder
<RedisConnection> getConnectionHolder
(ClientConnectionsEntry entry, boolean trackChanges) final void
-
Field Details
-
entries
-
-
Constructor Details
-
MasterConnectionPool
public MasterConnectionPool(MasterSlaveServersConfig config, ConnectionManager connectionManager, MasterSlaveEntry masterSlaveEntry)
-
-
Method Details
-
getConnectionHolder
protected ConnectionsHolder<RedisConnection> getConnectionHolder(ClientConnectionsEntry entry, boolean trackChanges) -
get
-
addEntry
-
removeEntry
-
get
public CompletableFuture<RedisConnection> get(RedisCommand<?> command, ClientConnectionsEntry entry, boolean trackChanges) -
acquireConnection
protected final CompletableFuture<RedisConnection> acquireConnection(RedisCommand<?> command, ClientConnectionsEntry entry, boolean trackChanges)
-