Class EqualityQueuedNotificationManager<L,​N>

    • Method Detail

      • getExecutor

        public final Executor getExecutor()
        Returns the Executor to used for notification tasks.
      • getMaxQueueCapacity

        public final int getMaxQueueCapacity()
        Returns the maximum listener queue capacity.
      • submitNotification

        public final void submitNotification​(L listener,
                                             N notification)
        Description copied from interface: NotificationManager
        Submits a notification to be queued and dispatched to the given listener.

        Note: This method may block if the listener queue is currently full.

        Specified by:
        submitNotification in interface NotificationManager<T,​L>
        Parameters:
        listener - the listener to notify
        notification - the notification to dispatch
      • submitNotifications

        public final void submitNotifications​(L listener,
                                              @Nullable Iterable<N> notifications)
        Description copied from interface: NotificationManager
        Submits notifications to be queued and dispatched to the given listener.

        Note: This method may block if the listener queue is currently full.

        Specified by:
        submitNotifications in interface NotificationManager<T,​L>
        Parameters:
        listener - the listener to notify
        notifications - the notifications to dispatch