Package org.redisson.pubsub
Class PublishSubscribeService
java.lang.Object
org.redisson.pubsub.PublishSubscribeService
- Author:
- Nikita Koksharov
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
countListeners
(ChannelName channelName) getSemaphore
(ChannelName channelName) boolean
hasEntry
(ChannelName channelName) boolean
isMultiEntity
(ChannelName channelName) boolean
psubscribe
(ChannelName channelName, Codec codec, RedisPubSubListener<?>... listeners) void
reattachPubSub
(int slot) void
reattachPubSub
(RedisPubSubConnection redisPubSubConnection) void
remove
(MasterSlaveEntry entry) removeAllListenersAsync
(PubSubType type, ChannelName channelName) removeListenerAsync
(PubSubType type, ChannelName channelName, Integer... listenerIds) removeListenerAsync
(PubSubType type, ChannelName channelName, EventListener listener) void
setShardingSupported
(boolean value) ssubscribe
(Codec codec, ChannelName channelName, RedisPubSubListener<?>... listeners) subscribe
(Codec codec, ChannelName channelName, RedisPubSubListener<?>... listeners) subscribe
(MasterSlaveEntry entry, ClientConnectionsEntry clientEntry, Codec codec, ChannelName channelName, RedisPubSubListener<?>... listeners) subscribeNoTimeout
(Codec codec, String channelName, AsyncSemaphore semaphore, RedisPubSubListener<?>... listeners) void
timeout
(CompletableFuture<?> promise) void
timeout
(CompletableFuture<?> promise, long timeout) toString()
unsubscribe
(ChannelName channelName, PubSubType topicType) unsubscribeLocked
(ChannelName channelName) unsubscribeLocked
(PubSubType topicType, ChannelName channelName)
-
Constructor Details
-
PublishSubscribeService
-
-
Method Details
-
getLockPubSub
-
getCountDownLatchPubSub
-
getSemaphorePubSub
-
countListeners
-
hasEntry
-
psubscribe
public CompletableFuture<Collection<PubSubConnectionEntry>> psubscribe(ChannelName channelName, Codec codec, RedisPubSubListener<?>... listeners) -
isMultiEntity
-
subscribe
public CompletableFuture<PubSubConnectionEntry> subscribe(MasterSlaveEntry entry, ClientConnectionsEntry clientEntry, Codec codec, ChannelName channelName, RedisPubSubListener<?>... listeners) -
subscribe
public CompletableFuture<List<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
-
unsubscribeLocked
-
unsubscribeLocked
-
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
-
setShardingSupported
public void setShardingSupported(boolean value) -
isShardingSupported
public boolean isShardingSupported() -
getPublishCommand
-
toString
-