Package org.redisson.connection.pool
Class SlaveConnectionPool
- java.lang.Object
-
- org.redisson.connection.pool.SlaveConnectionPool
-
public class SlaveConnectionPool extends Object
Connection pool for slave node- Author:
- Nikita Koksharov
-
-
Field Summary
Fields Modifier and Type Field Description protected Queue<ClientConnectionsEntry>
entries
-
Constructor Summary
Constructors Constructor Description SlaveConnectionPool(MasterSlaveServersConfig config, ConnectionManager connectionManager, MasterSlaveEntry masterSlaveEntry)
-
Method Summary
-
-
-
Field Detail
-
entries
protected final Queue<ClientConnectionsEntry> entries
-
-
Constructor Detail
-
SlaveConnectionPool
public SlaveConnectionPool(MasterSlaveServersConfig config, ConnectionManager connectionManager, MasterSlaveEntry masterSlaveEntry)
-
-
Method Detail
-
getMinimumIdleSize
protected int getMinimumIdleSize(ClientConnectionsEntry entry)
-
add
public CompletableFuture<Void> add(ClientConnectionsEntry entry)
-
initConnections
public CompletableFuture<Void> initConnections(ClientConnectionsEntry entry)
-
acquireConnection
protected CompletableFuture<Void> acquireConnection(ClientConnectionsEntry entry, RedisCommand<?> command)
-
get
public CompletableFuture<T> get(RedisCommand<?> command)
-
get
public CompletableFuture<T> get(RedisCommand<?> command, ClientConnectionsEntry entry)
-
acquireConnection
protected final CompletableFuture<T> acquireConnection(RedisCommand<?> command, ClientConnectionsEntry entry)
-
tryAcquireConnection
protected boolean tryAcquireConnection(ClientConnectionsEntry entry)
-
poll
protected T poll(ClientConnectionsEntry entry, RedisCommand<?> command)
-
connect
protected CompletionStage<T> connect(ClientConnectionsEntry entry)
-
returnConnection
public void returnConnection(ClientConnectionsEntry entry, T connection)
-
releaseConnection
protected void releaseConnection(ClientConnectionsEntry entry)
-
releaseConnection
protected void releaseConnection(ClientConnectionsEntry entry, T conn)
-
-