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 TypeMethodDescriptionintcountListeners(ChannelName channelName) booleanhasEntry(ChannelName channelName) booleanisMultiEntity(ChannelName channelName) booleanpsubscribe(ChannelName channelName, Codec codec, RedisPubSubListener<?>... listeners) voidreattachPubSub(int slot) voidreattachPubSub(RedisPubSubConnection redisPubSubConnection) voidremove(MasterSlaveEntry entry) removeAllListenersAsync(PubSubType type, ChannelName channelName) removeFlushListenerAsync(int listenerId) removeListenerAsync(PubSubType type, ChannelName channelName, Integer... listenerIds) removeListenerAsync(PubSubType type, ChannelName channelName, EventListener listener) voidsetShardingSupported(boolean shardingSupported) ssubscribe(Codec codec, ChannelName channelName, RedisPubSubListener<?>... listeners) subscribe(String key, Codec codec, CommandAsyncExecutor commandExecutor, TrackingListener listener) subscribe(Codec codec, ChannelName channelName, RedisPubSubListener<?>... listeners) subscribe(CommandAsyncExecutor commandExecutor, FlushListener listener) subscribe(CommandAsyncExecutor commandExecutor, TrackingListener listener) subscribe(MasterSlaveEntry entry, ClientConnectionsEntry clientEntry, Codec codec, ChannelName channelName, RedisPubSubListener<?>... listeners) 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<PubSubConnectionEntry> subscribe(MasterSlaveEntry entry, ClientConnectionsEntry clientEntry, Codec codec, ChannelName channelName, RedisPubSubListener<?>... listeners) -
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) -
ssubscribe
public CompletableFuture<PubSubConnectionEntry> ssubscribe(Codec codec, ChannelName channelName, RedisPubSubListener<?>... listeners) -
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 shardingSupported) -
isShardingSupported
public boolean isShardingSupported() -
getPublishCommand
-
toString
-