Class IdentityQueuedNotificationManager<L,N>

All Implemented Interfaces:
Identifiable<String>, NotificationManager<L,N>
Direct Known Subclasses:
QueuedNotificationManager

@Beta @NonNullByDefault public class IdentityQueuedNotificationManager<L,N> extends AbstractSimpleIdentifiable<String>
  • Constructor Details

  • Method Details

    • getExecutor

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

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

      public final QueuedNotificationManagerMXBean getMXBean()
      Return an QueuedNotificationManagerMXBean tied to this instance.
      Returns:
      An QueuedNotificationManagerMXBean object.
    • 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