Package org.redisson.pubsub
Class PublishSubscribeService
java.lang.Object
org.redisson.pubsub.PublishSubscribeService
- Author:
- Nikita Koksharov
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionPublishSubscribeService(ConnectionManager connectionManager, MasterSlaveServersConfig config) -
Method Summary
Modifier and TypeMethodDescriptiongetPubSubEntry(ChannelName channelName) getSemaphore(ChannelName channelName) psubscribe(ChannelName channelName, Codec codec, RedisPubSubListener<?>... listeners) voidreattachPubSub(int slot) voidreattachPubSub(RedisPubSubConnection redisPubSubConnection) voidremove(MasterSlaveEntry entry) removeAllListenersAsync(PubSubType type, ChannelName channelName) removeListenerAsync(PubSubType type, ChannelName channelName, Integer... listenerIds) removeListenerAsync(PubSubType type, ChannelName channelName, EventListener listener) ssubscribe(Codec codec, ChannelName channelName, RedisPubSubListener<?>... listeners) subscribe(Codec codec, ChannelName channelName, RedisPubSubListener<?>... listeners) subscribeNoTimeout(Codec codec, String channelName, AsyncSemaphore semaphore, RedisPubSubListener<?>... listeners) voidtimeout(CompletableFuture<?> promise) voidtimeout(CompletableFuture<?> promise, long timeout) toString()unsubscribe(ChannelName channelName, PubSubType topicType) unsubscribe(PubSubType topicType, ChannelName channelName)
-
Constructor Details
-
PublishSubscribeService
public PublishSubscribeService(ConnectionManager connectionManager, MasterSlaveServersConfig config)
-
-
Method Details
-
getConnectionManager
-
getLockPubSub
-
getCountDownLatchPubSub
-
getSemaphorePubSub
-
getPubSubEntry
-
psubscribe
public CompletableFuture<Collection<PubSubConnectionEntry>> psubscribe(ChannelName channelName, Codec codec, RedisPubSubListener<?>... listeners) -
subscribe
public CompletableFuture<PubSubConnectionEntry> subscribe(Codec codec, ChannelName channelName, RedisPubSubListener<?>... listeners) -
ssubscribe
public CompletableFuture<PubSubConnectionEntry> ssubscribe(Codec codec, ChannelName channelName, RedisPubSubListener<?>... listeners) -
subscribeNoTimeout
public CompletableFuture<PubSubConnectionEntry> subscribeNoTimeout(Codec codec, String channelName, AsyncSemaphore semaphore, RedisPubSubListener<?>... listeners) -
getSemaphore
-
timeout
-
timeout
-
unsubscribe
-
remove
-
unsubscribe
-
reattachPubSub
public void reattachPubSub(int slot) -
reattachPubSub
-
removeListenerAsync
public CompletableFuture<Void> removeListenerAsync(PubSubType type, ChannelName channelName, EventListener listener) -
removeListenerAsync
public CompletableFuture<Void> removeListenerAsync(PubSubType type, ChannelName channelName, Integer... listenerIds) -
removeAllListenersAsync
-
toString
-