Package org.redisson.connection.pool
Class MasterPubSubConnectionPool
- java.lang.Object
-
- org.redisson.connection.pool.PubSubConnectionPool
-
- org.redisson.connection.pool.MasterPubSubConnectionPool
-
public class MasterPubSubConnectionPool extends PubSubConnectionPool
Connection pool for Publish/Subscribe used with single node- Author:
- Nikita Koksharov
-
-
Field Summary
Fields Modifier and Type Field Description protected Queue<ClientConnectionsEntry>
entries
-
Constructor Summary
Constructors Constructor Description MasterPubSubConnectionPool(MasterSlaveServersConfig config, ConnectionManager connectionManager, MasterSlaveEntry masterSlaveEntry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CompletableFuture<T>
acquireConnection(RedisCommand<?> command, ClientConnectionsEntry entry)
CompletableFuture<Void>
add(ClientConnectionsEntry entry)
CompletableFuture<RedisPubSubConnection>
get(RedisCommand<?> command)
CompletableFuture<T>
get(RedisCommand<?> command, ClientConnectionsEntry entry)
CompletableFuture<Void>
initConnections(ClientConnectionsEntry entry)
void
remove(ClientConnectionsEntry entry)
void
returnConnection(ClientConnectionsEntry entry, T connection)
protected boolean
tryAcquireConnection(ClientConnectionsEntry entry)
-
Methods inherited from class org.redisson.connection.pool.PubSubConnectionPool
acquireConnection, connect, get, getMinimumIdleSize, poll, releaseConnection, releaseConnection
-
-
-
-
Field Detail
-
entries
protected final Queue<ClientConnectionsEntry> entries
-
-
Constructor Detail
-
MasterPubSubConnectionPool
public MasterPubSubConnectionPool(MasterSlaveServersConfig config, ConnectionManager connectionManager, MasterSlaveEntry masterSlaveEntry)
-
-
Method Detail
-
get
public CompletableFuture<RedisPubSubConnection> get(RedisCommand<?> command)
-
remove
public void remove(ClientConnectionsEntry entry)
-
add
public CompletableFuture<Void> add(ClientConnectionsEntry entry)
-
initConnections
public CompletableFuture<Void> initConnections(ClientConnectionsEntry entry)
-
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)
-
returnConnection
public void returnConnection(ClientConnectionsEntry entry, T connection)
-
-