@Beta @NonNullByDefault public class IdentityQueuedNotificationManager<L,N> extends AbstractIdentifiable<String>
Constructor and Description |
---|
IdentityQueuedNotificationManager(String name,
Executor executor,
int maxQueueCapacity,
QueuedNotificationManager.BatchedInvoker<L,N> listenerInvoker) |
Modifier and Type | Method and Description |
---|---|
Executor |
getExecutor()
Returns the
Executor to used for notification tasks. |
List<ListenerNotificationQueueStats> |
getListenerNotificationQueueStats()
Returns
ListenerNotificationQueueStats instances for each current listener
notification task in progress. |
int |
getMaxQueueCapacity()
Returns the maximum listener queue capacity.
|
QueuedNotificationManagerMXBean |
getMXBean()
Return an
QueuedNotificationManagerMXBean tied to this instance. |
void |
submitNotification(L listener,
N notification)
Submits a notification to be queued and dispatched to the given listener.
|
void |
submitNotifications(L listener,
@Nullable Iterable<N> notifications)
Submits notifications to be queued and dispatched to the given listener.
|
addToStringAttributes, getIdentifier, toString
public IdentityQueuedNotificationManager(String name, Executor executor, int maxQueueCapacity, QueuedNotificationManager.BatchedInvoker<L,N> listenerInvoker)
public final Executor getExecutor()
Executor
to used for notification tasks.public final int getMaxQueueCapacity()
public final QueuedNotificationManagerMXBean getMXBean()
QueuedNotificationManagerMXBean
tied to this instance.public final List<ListenerNotificationQueueStats> getListenerNotificationQueueStats()
ListenerNotificationQueueStats
instances for each current listener
notification task in progress.public final void submitNotification(L listener, N notification)
NotificationManager
Note: This method may block if the listener queue is currently full.
submitNotification
in interface NotificationManager<L,N>
listener
- the listener to notifynotification
- the notification to dispatchpublic final void submitNotifications(L listener, @Nullable Iterable<N> notifications)
NotificationManager
Note: This method may block if the listener queue is currently full.
submitNotifications
in interface NotificationManager<L,N>
listener
- the listener to notifynotifications
- the notifications to dispatchCopyright © 2020 OpenDaylight. All rights reserved.