MasterPubSubConnectionPool
public class PubSubConnectionPool extends Object
Modifier and Type | Field | Description |
---|---|---|
protected List<ClientConnectionsEntry> |
entries |
Constructor | Description |
---|---|
PubSubConnectionPool(MasterSlaveServersConfig config,
ConnectionManager connectionManager,
MasterSlaveEntry masterSlaveEntry) |
Modifier and Type | Method | Description |
---|---|---|
protected RFuture<T> |
acquireConnection(RedisCommand<?> command,
ClientConnectionsEntry entry) |
|
protected void |
acquireConnection(ClientConnectionsEntry entry,
Runnable runnable) |
|
RFuture<Void> |
add(ClientConnectionsEntry entry) |
|
protected RFuture<RedisPubSubConnection> |
connect(ClientConnectionsEntry entry) |
|
RFuture<T> |
get(RedisCommand<?> command) |
|
RFuture<T> |
get(RedisCommand<?> command,
ClientConnectionsEntry entry) |
|
RFuture<RedisPubSubConnection> |
get() |
|
protected int |
getMinimumIdleSize(ClientConnectionsEntry entry) |
|
protected RedisPubSubConnection |
poll(ClientConnectionsEntry entry) |
|
protected void |
releaseConnection(ClientConnectionsEntry entry) |
|
protected void |
releaseConnection(ClientConnectionsEntry entry,
RedisPubSubConnection conn) |
|
void |
returnConnection(ClientConnectionsEntry entry,
T connection) |
|
protected boolean |
tryAcquireConnection(ClientConnectionsEntry entry) |
protected final List<ClientConnectionsEntry> entries
public PubSubConnectionPool(MasterSlaveServersConfig config, ConnectionManager connectionManager, MasterSlaveEntry masterSlaveEntry)
public RFuture<RedisPubSubConnection> get()
protected RedisPubSubConnection poll(ClientConnectionsEntry entry)
protected int getMinimumIdleSize(ClientConnectionsEntry entry)
protected RFuture<RedisPubSubConnection> connect(ClientConnectionsEntry entry)
protected void acquireConnection(ClientConnectionsEntry entry, Runnable runnable)
protected void releaseConnection(ClientConnectionsEntry entry)
protected void releaseConnection(ClientConnectionsEntry entry, RedisPubSubConnection conn)
public RFuture<Void> add(ClientConnectionsEntry entry)
public RFuture<T> get(RedisCommand<?> command)
public RFuture<T> get(RedisCommand<?> command, ClientConnectionsEntry entry)
protected final RFuture<T> acquireConnection(RedisCommand<?> command, ClientConnectionsEntry entry)
protected boolean tryAcquireConnection(ClientConnectionsEntry entry)
public void returnConnection(ClientConnectionsEntry entry, T connection)
Copyright © 2014–2018 The Redisson Project. All rights reserved.