Allow QueuedNotificationManager to batch notifications 43/46143/1
authorRobert Varga <rovarga@cisco.com>
Wed, 21 Sep 2016 15:29:57 +0000 (17:29 +0200)
committerRobert Varga <nite@hq.sk>
Fri, 23 Sep 2016 16:51:48 +0000 (16:51 +0000)
commit0ab9979b537056119507bbed776f1b5ff668844b
tree1c2a970c5112e7a1bba2633a67b9ff1da529e237
parent21782e414bc65f82975f62fb560c12f23c5d2acb
Allow QueuedNotificationManager to batch notifications

This patch reworks the queueing logic so that notifications
get completely read from the queue and then propagated to the
listener invoker in one go.

Change-Id: I1a4caaa75f7a206abf4ff5b6829918bd25d79551
Signed-off-by: Robert Varga <rovarga@cisco.com>
(cherry picked from commit ddc17ff5daf9a58c5cf5f4ede3e49621c0db3d6c)
common/util/src/main/java/org/opendaylight/yangtools/util/concurrent/QueuedNotificationManager.java
common/util/src/test/java/org/opendaylight/yangtools/util/concurrent/QueuedNotificationManagerTest.java