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