public class SubscribesConnectionEntry extends ConnectionEntry
Constructor and Description |
---|
SubscribesConnectionEntry(RedisClient client,
int poolSize,
int subscribePoolSize) |
Modifier and Type | Method and Description |
---|---|
RedisPubSubConnection |
connectPubSub(MasterSlaveServersConfig config) |
Queue<RedisPubSubConnection> |
getAllSubscribeConnections() |
Semaphore |
getSubscribeConnectionsSemaphore() |
void |
offerFreeSubscribeConnection(RedisPubSubConnection connection) |
RedisPubSubConnection |
pollFreeSubscribeConnection() |
void |
registerSubscribeConnection(RedisPubSubConnection connection) |
connect, getClient, getConnections, getConnectionsSemaphore, isFreezed, setFreezed, toString
public SubscribesConnectionEntry(RedisClient client, int poolSize, int subscribePoolSize)
public Queue<RedisPubSubConnection> getAllSubscribeConnections()
public void registerSubscribeConnection(RedisPubSubConnection connection)
public RedisPubSubConnection pollFreeSubscribeConnection()
public void offerFreeSubscribeConnection(RedisPubSubConnection connection)
public Semaphore getSubscribeConnectionsSemaphore()
public RedisPubSubConnection connectPubSub(MasterSlaveServersConfig config)
connectPubSub
in class ConnectionEntry
Copyright © 2014–2015. All rights reserved.