Package org.redisson.pubsub
Class PublishSubscribeService
- java.lang.Object
-
- org.redisson.pubsub.PublishSubscribeService
-
public class PublishSubscribeService extends Object
- Author:
- Nikita Koksharov
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PublishSubscribeService.PubSubEntry
static class
PublishSubscribeService.PubSubKey
-
Constructor Summary
Constructors Constructor Description PublishSubscribeService(ConnectionManager connectionManager, MasterSlaveServersConfig config)
-
Method Summary
-
-
-
Constructor Detail
-
PublishSubscribeService
public PublishSubscribeService(ConnectionManager connectionManager, MasterSlaveServersConfig config)
-
-
Method Detail
-
getLockPubSub
public LockPubSub getLockPubSub()
-
getCountDownLatchPubSub
public CountDownLatchPubSub getCountDownLatchPubSub()
-
getSemaphorePubSub
public SemaphorePubSub getSemaphorePubSub()
-
getPubSubEntry
public PubSubConnectionEntry getPubSubEntry(ChannelName channelName)
-
psubscribe
public RFuture<Collection<PubSubConnectionEntry>> psubscribe(ChannelName channelName, Codec codec, RedisPubSubListener<?>... listeners)
-
subscribe
public RFuture<PubSubConnectionEntry> subscribe(Codec codec, ChannelName channelName, RedisPubSubListener<?>... listeners)
-
subscribe
public RFuture<PubSubConnectionEntry> subscribe(Codec codec, String channelName, AsyncSemaphore semaphore, RedisPubSubListener<?>... listeners)
-
getSemaphore
public AsyncSemaphore getSemaphore(ChannelName channelName)
-
unsubscribe
public RFuture<Void> unsubscribe(PubSubType topicType, ChannelName channelName)
-
remove
public void remove(MasterSlaveEntry entry)
-
unsubscribe
public RFuture<Codec> unsubscribe(ChannelName channelName, PubSubType topicType)
-
reattachPubSub
public void reattachPubSub(int slot)
-
reattachPubSub
public void reattachPubSub(RedisPubSubConnection redisPubSubConnection)
-
removeListenerAsync
public RFuture<Void> removeListenerAsync(PubSubType type, ChannelName channelName, EventListener listener)
-
removeListenerAsync
public RFuture<Void> removeListenerAsync(PubSubType type, ChannelName channelName, Integer... listenerIds)
-
-