tkalkirill commented on code in PR #2592:
URL: https://github.com/apache/ignite-3/pull/2592#discussion_r1327071841
##########
modules/core/src/main/java/org/apache/ignite/internal/event/EventProducer.java:
##########
@@ -15,26 +15,24 @@
* limitations under the License.
*/
-package org.apache.ignite.internal.manager;
+package org.apache.ignite.internal.event;
-import org.apache.ignite.lang.IgniteInternalCheckedException;
-
-/**
- * The exception notifies a listener when the listener was removed from queue
and never receive a notification again.
- */
-public class ListenerRemovedException extends IgniteInternalCheckedException {
+/** Allows to {@link #listen add} and {@link #removeListener remove} event
listeners that the component will fire. */
+public interface EventProducer<T extends Event, P extends EventParameters> {
/**
- * Default constructor.
+ * Registers an event listener. When the event predicate returns true it
would never invoke after, otherwise this predicate would
+ * receive an event again.
Review Comment:
fix it
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]