Address FIXME for QueuedNotificationManager 78/36978/7
authorRyan Goulding <ryandgoulding@gmail.com>
Thu, 31 Mar 2016 21:21:11 +0000 (17:21 -0400)
committerRobert Varga <nite@hq.sk>
Wed, 4 May 2016 12:19:29 +0000 (12:19 +0000)
commitabced3230f02588c577c17c0cc039c5707c85081
tree1690ff899bdab76dec27c93f2518c7e2f32e641e
parent36bdb3a032d4924b36dc86d782e58043954adadc
Address FIXME for QueuedNotificationManager

The QueuedNotificationManager was originally implemented to loop forever in
attempt to offer the target notification queue a notification.  However, with a
reasonably large queue capacity and long timeout, if queueing is still
unsuccessful, then the listener is likely in an unrecoverable state (deadlock
or endless loop).  To avoid one rogue listener bringing everyone to a halt, the
number of tries is limited to 10 (10 minutes), and an appropriate warning
message is printed if the offer attempt fails.

Change-Id: Ie01ee475cfdda2c93c346d3b7ea823ccfc609b83
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
common/util/src/main/java/org/opendaylight/yangtools/util/concurrent/QueuedNotificationManager.java