Package org.redisson.connection.pool
Class SlaveConnectionPool
java.lang.Object
org.redisson.connection.pool.SlaveConnectionPool
Connection pool for slave node
- Author:
- Nikita Koksharov
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSlaveConnectionPool
(MasterSlaveServersConfig config, ConnectionManager connectionManager, MasterSlaveEntry masterSlaveEntry) -
Method Summary
Modifier and TypeMethodDescriptionprotected final CompletableFuture
<RedisConnection> acquireConnection
(RedisCommand<?> command, ClientConnectionsEntry entry) protected CompletableFuture
<Void> acquireConnection
(ClientConnectionsEntry entry, RedisCommand<?> command) void
addEntry
(ClientConnectionsEntry entry) protected boolean
protected CompletionStage
<RedisConnection> connect
(ClientConnectionsEntry entry) get
(RedisCommand<?> command) get
(RedisCommand<?> command, ClientConnectionsEntry entry) protected int
protected RedisConnection
poll
(ClientConnectionsEntry entry, RedisCommand<?> command) protected void
protected void
releaseConnection
(ClientConnectionsEntry entry, RedisConnection conn) void
returnConnection
(ClientConnectionsEntry entry, RedisConnection connection)
-
Field Details
-
entries
-
-
Constructor Details
-
SlaveConnectionPool
public SlaveConnectionPool(MasterSlaveServersConfig config, ConnectionManager connectionManager, MasterSlaveEntry masterSlaveEntry)
-
-
Method Details
-
getMinimumIdleSize
-
addEntry
-
initConnections
-
acquireConnection
protected CompletableFuture<Void> acquireConnection(ClientConnectionsEntry entry, RedisCommand<?> command) -
get
-
get
public CompletableFuture<RedisConnection> get(RedisCommand<?> command, ClientConnectionsEntry entry) -
acquireConnection
protected final CompletableFuture<RedisConnection> acquireConnection(RedisCommand<?> command, ClientConnectionsEntry entry) -
poll
-
connect
-
changeUsage
protected boolean changeUsage() -
returnConnection
-
releaseConnection
-
releaseConnection
-