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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckPatternSupport(RedisConnection connection) voidcheckShardingSupport(ShardedSubscriptionMode mode, RedisConnection connection) intcountListeners(List<ChannelName> channelNames) booleanhasEntry(ChannelName channelName) booleanisMultiEntity(ChannelName channelName) booleanbooleanpsubscribe(ChannelName channelName, Codec codec, RedisPubSubListener<?>... listeners) voidreattachPubSub(int slot) voidreattachPubSub(RedisPubSubConnection redisPubSubConnection) voidremove(MasterSlaveEntry entry) removeAllListenersAsync(PubSubType type, ChannelName... channelNames) removeFlushListenerAsync(int listenerId) removeListenerAsync(PubSubType type, List<ChannelName> channelNames, Integer... listenerIds) removeListenerAsync(PubSubType type, List<ChannelName> channelNames, EventListener listener) voidsetPatternSupported(boolean patternSupported) voidsetShardingSupported(boolean shardingSupported) ssubscribe(Codec codec, List<ChannelName> channelNames, RedisPubSubListener<?>... listeners) subscribe(String key, Codec codec, CommandAsyncExecutor commandExecutor, TrackingListener listener) subscribe(Codec codec, List<ChannelName> channelNames, RedisPubSubListener<?>... listeners) subscribe(Codec codec, ChannelName channelName, RedisPubSubListener<?>... listeners) subscribe(CommandAsyncExecutor commandExecutor, FlushListener listener) subscribe(CommandAsyncExecutor commandExecutor, TrackingListener listener) toString()unsubscribe(ChannelName channelName, PubSubType topicType)
-
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<Integer> subscribe(CommandAsyncExecutor commandExecutor, FlushListener listener) -
subscribe
public CompletableFuture<Integer> subscribe(CommandAsyncExecutor commandExecutor, TrackingListener listener) -
removeFlushListenerAsync
-
subscribe
public CompletableFuture<Integer> subscribe(String key, Codec codec, CommandAsyncExecutor commandExecutor, TrackingListener listener) -
subscribe
public CompletableFuture<List<PubSubConnectionEntry>> subscribe(Codec codec, ChannelName channelName, RedisPubSubListener<?>... listeners) -
subscribe
public CompletableFuture<List<PubSubConnectionEntry>> subscribe(Codec codec, List<ChannelName> channelNames, RedisPubSubListener<?>... listeners) -
ssubscribe
public CompletableFuture<PubSubConnectionEntry> ssubscribe(Codec codec, List<ChannelName> channelNames, RedisPubSubListener<?>... listeners) -
remove
-
unsubscribe
-
reattachPubSub
public void reattachPubSub(int slot) -
reattachPubSub
-
removeListenerAsync
public CompletableFuture<Void> removeListenerAsync(PubSubType type, List<ChannelName> channelNames, EventListener listener) -
removeListenerAsync
public CompletableFuture<Void> removeListenerAsync(PubSubType type, List<ChannelName> channelNames, Integer... listenerIds) -
removeAllListenersAsync
public CompletableFuture<Void> removeAllListenersAsync(PubSubType type, ChannelName... channelNames) -
checkPatternSupport
-
checkShardingSupport
-
isPatternSupported
public boolean isPatternSupported() -
setPatternSupported
public void setPatternSupported(boolean patternSupported) -
setShardingSupported
public void setShardingSupported(boolean shardingSupported) -
isShardingSupported
public boolean isShardingSupported() -
getPublishCommand
-
toString
-