From c5f9894aec9d64b791d57e7b2bd0a387f8fe5ba3 Mon Sep 17 00:00:00 2001 From: Nikita Koksharov Date: Fri, 22 Oct 2021 09:47:29 +0300 Subject: [PATCH] javadocs fixed --- .../src/main/java/org/redisson/api/RReliableTopic.java | 10 ++++++---- .../java/org/redisson/api/RReliableTopicAsync.java | 8 +++++--- .../java/org/redisson/api/RReliableTopicReactive.java | 8 +++++--- .../main/java/org/redisson/api/RReliableTopicRx.java | 8 +++++--- 4 files changed, 21 insertions(+), 13 deletions(-) diff --git a/redisson/src/main/java/org/redisson/api/RReliableTopic.java b/redisson/src/main/java/org/redisson/api/RReliableTopic.java index df51755e1..9f0016599 100644 --- a/redisson/src/main/java/org/redisson/api/RReliableTopic.java +++ b/redisson/src/main/java/org/redisson/api/RReliableTopic.java @@ -52,6 +52,8 @@ public interface RReliableTopic extends RExpirable, RReliableTopicAsync { * MessageListener.onMessage method is called when any message * is published on this topic. *

+ * Though messages broadcasted across all topic instances, listener is attached to this topic instance. + *

* Watchdog is started when listener was registered. * * @see org.redisson.config.Config#setReliableTopicWatchdogTimeout(long) @@ -59,25 +61,25 @@ public interface RReliableTopic extends RExpirable, RReliableTopicAsync { * @param - type of message * @param type - type of message * @param listener for messages - * @return locally unique listener id + * @return id of listener attached to this topic instance * @see MessageListener */ String addListener(Class type, MessageListener listener); /** - * Removes the listener by id for listening this topic + * Removes the listener by id attached to this topic instance * * @param listenerIds - listener ids */ void removeListener(String... listenerIds); /** - * Removes all listeners from this topic + * Removes all listeners attached to this topic instance */ void removeAllListeners(); /** - * Returns amount of registered listeners to this topic + * Returns amount of registered listeners to this topic instance * * @return amount of listeners */ diff --git a/redisson/src/main/java/org/redisson/api/RReliableTopicAsync.java b/redisson/src/main/java/org/redisson/api/RReliableTopicAsync.java index 2f3f203e3..4c6d19003 100644 --- a/redisson/src/main/java/org/redisson/api/RReliableTopicAsync.java +++ b/redisson/src/main/java/org/redisson/api/RReliableTopicAsync.java @@ -52,6 +52,8 @@ public interface RReliableTopicAsync extends RExpirableAsync { * MessageListener.onMessage method is called when any message * is published on this topic. *

+ * Though messages broadcasted across all topic instances, listener is attached to this topic instance. + *

* Watchdog is started when listener was registered. * * @see org.redisson.config.Config#setReliableTopicWatchdogTimeout(long) @@ -59,13 +61,13 @@ public interface RReliableTopicAsync extends RExpirableAsync { * @param - type of message * @param type - type of message * @param listener for messages - * @return locally unique listener id + * @return id of listener attached to this topic instance * @see MessageListener */ RFuture addListenerAsync(Class type, MessageListener listener); /** - * Removes the listener by id for listening this topic + * Removes the listener by id attached to this topic instance * * @param listenerIds - listener ids * @return void @@ -73,7 +75,7 @@ public interface RReliableTopicAsync extends RExpirableAsync { RFuture removeListenerAsync(String... listenerIds); /** - * Removes all listeners from this topic + * Removes all listeners attached to this topic instance */ RFuture removeAllListenersAsync(); diff --git a/redisson/src/main/java/org/redisson/api/RReliableTopicReactive.java b/redisson/src/main/java/org/redisson/api/RReliableTopicReactive.java index ff5461c33..76ac83a4c 100644 --- a/redisson/src/main/java/org/redisson/api/RReliableTopicReactive.java +++ b/redisson/src/main/java/org/redisson/api/RReliableTopicReactive.java @@ -54,6 +54,8 @@ public interface RReliableTopicReactive extends RExpirableReactive { * MessageListener.onMessage method is called when any message * is published on this topic. *

+ * Though messages broadcasted across all topic instances, listener is attached to this topic instance. + *

* Watchdog is started when listener was registered. * * @see org.redisson.config.Config#setReliableTopicWatchdogTimeout(long) @@ -61,13 +63,13 @@ public interface RReliableTopicReactive extends RExpirableReactive { * @param - type of message * @param type - type of message * @param listener for messages - * @return locally unique listener id + * @return id of listener attached to this topic instance * @see MessageListener */ Mono addListener(Class type, MessageListener listener); /** - * Removes the listener by id for listening this topic + * Removes the listener by id attached to this topic instance * * @param listenerIds - listener ids * @return void @@ -75,7 +77,7 @@ public interface RReliableTopicReactive extends RExpirableReactive { Mono removeListener(String... listenerIds); /** - * Removes all listeners from this topic + * Removes all listeners attached to this topic instance */ Mono removeAllListeners(); diff --git a/redisson/src/main/java/org/redisson/api/RReliableTopicRx.java b/redisson/src/main/java/org/redisson/api/RReliableTopicRx.java index 4716d8686..c8d0882b7 100644 --- a/redisson/src/main/java/org/redisson/api/RReliableTopicRx.java +++ b/redisson/src/main/java/org/redisson/api/RReliableTopicRx.java @@ -55,6 +55,8 @@ public interface RReliableTopicRx extends RExpirableRx { * MessageListener.onMessage method is called when any message * is published on this topic. *

+ * Though messages broadcasted across all topic instances, listener is attached to this topic instance. + *

* Watchdog is started when listener was registered. * * @see org.redisson.config.Config#setReliableTopicWatchdogTimeout(long) @@ -62,13 +64,13 @@ public interface RReliableTopicRx extends RExpirableRx { * @param - type of message * @param type - type of message * @param listener for messages - * @return locally unique listener id + * @return id of listener attached to this topic instance * @see MessageListener */ Single addListener(Class type, MessageListener listener); /** - * Removes the listener by id for listening this topic + * Removes the listener by id attached to this topic instance * * @param listenerIds - listener ids * @return void @@ -76,7 +78,7 @@ public interface RReliableTopicRx extends RExpirableRx { Completable removeListener(String... listenerIds); /** - * Removes all listeners from this topic + * Removes all listeners attached to this topic instance */ Completable removeAllListeners();