Class EqualityQueuedNotificationManager<L,N>
- java.lang.Object
-
- org.opendaylight.yangtools.concepts.AbstractIdentifiable<String>
-
- org.opendaylight.yangtools.util.concurrent.EqualityQueuedNotificationManager<L,N>
-
- All Implemented Interfaces:
Identifiable<String>
,NotificationManager<L,N>
@Beta @NonNullByDefault public final class EqualityQueuedNotificationManager<L,N> extends AbstractIdentifiable<String>
-
-
Constructor Summary
Constructors Constructor Description EqualityQueuedNotificationManager(String name, Executor executor, int maxQueueCapacity, QueuedNotificationManager.BatchedInvoker<L,N> listenerInvoker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Executor
getExecutor()
Returns theExecutor
to used for notification tasks.List<ListenerNotificationQueueStats>
getListenerNotificationQueueStats()
ReturnsListenerNotificationQueueStats
instances for each current listener notification task in progress.int
getMaxQueueCapacity()
Returns the maximum listener queue capacity.QueuedNotificationManagerMXBean
getMXBean()
Return anQueuedNotificationManagerMXBean
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.-
Methods inherited from class org.opendaylight.yangtools.concepts.AbstractIdentifiable
addToStringAttributes, getIdentifier, toString
-
-
-
-
Constructor Detail
-
EqualityQueuedNotificationManager
public EqualityQueuedNotificationManager(String name, Executor executor, int maxQueueCapacity, QueuedNotificationManager.BatchedInvoker<L,N> listenerInvoker)
-
-
Method Detail
-
getExecutor
public final Executor getExecutor()
Returns theExecutor
to used for notification tasks.
-
getMaxQueueCapacity
public final int getMaxQueueCapacity()
Returns the maximum listener queue capacity.
-
getMXBean
public final QueuedNotificationManagerMXBean getMXBean()
Return anQueuedNotificationManagerMXBean
tied to this instance.- Returns:
- An QueuedNotificationManagerMXBean object.
-
getListenerNotificationQueueStats
public final List<ListenerNotificationQueueStats> getListenerNotificationQueueStats()
ReturnsListenerNotificationQueueStats
instances for each current listener notification task in progress.
-
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 interfaceNotificationManager<T,L>
- Parameters:
listener
- the listener to notifynotification
- 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 interfaceNotificationManager<T,L>
- Parameters:
listener
- the listener to notifynotifications
- the notifications to dispatch
-
-