public class PublishSubscribeService extends Object
Constructor and Description |
---|
PublishSubscribeService(ConnectionManager connectionManager,
MasterSlaveServersConfig config) |
public PublishSubscribeService(ConnectionManager connectionManager, MasterSlaveServersConfig config)
public LockPubSub getLockPubSub()
public CountDownLatchPubSub getCountDownLatchPubSub()
public SemaphorePubSub getSemaphorePubSub()
public PubSubConnectionEntry getPubSubEntry(ChannelName channelName)
public RFuture<PubSubConnectionEntry> psubscribe(ChannelName channelName, Codec codec, RedisPubSubListener<?>... listeners)
public RFuture<PubSubConnectionEntry> psubscribe(String channelName, Codec codec, AsyncSemaphore semaphore, RedisPubSubListener<?>... listeners)
public RFuture<PubSubConnectionEntry> subscribe(Codec codec, ChannelName channelName, RedisPubSubListener<?>... listeners)
public RFuture<PubSubConnectionEntry> subscribe(Codec codec, String channelName, AsyncSemaphore semaphore, RedisPubSubListener<?>... listeners)
public AsyncSemaphore getSemaphore(ChannelName channelName)
public RFuture<Void> unsubscribe(ChannelName channelName, AsyncSemaphore lock)
public RFuture<Codec> unsubscribe(ChannelName channelName, PubSubType topicType)
public void punsubscribe(ChannelName channelName, AsyncSemaphore lock)
public void reattachPubSub(RedisPubSubConnection redisPubSubConnection)
Copyright © 2014–2019 The Redisson Project. All rights reserved.