BUG-1120: improve notification queue
authorRobert Varga <rovarga@cisco.com>
Mon, 2 Jun 2014 21:57:06 +0000 (23:57 +0200)
committerRobert Varga <rovarga@cisco.com>
Thu, 5 Jun 2014 07:29:01 +0000 (09:29 +0200)
commite0950bdb9ddad6053178558c851d0485e939c3f3
tree0689fc6c53c66c50d508f58c5202a31d1683361b
parentaf1e406819a2e9d1a64530473528cc2b14042ea9
BUG-1120: improve notification queue

This is a slight improvement in that it uses a ForwardingBlockingQueue
instead of subclassing -- allowing for easy replacement (for an
ArrayBlockingQueue for example).

Another improvement is the use of RejectedExecutionException instead of
IllegalStateException -- allowing clients to cleanly recover from thread
interruption.

Change-Id: I80040846bb34a12da1eb1e0df62a538b0551239e
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/sal/binding/codegen/impl/SingletonHolder.java