BUG-1120: introduce NotificationListenerMap
authorRobert Varga <rovarga@cisco.com>
Mon, 2 Jun 2014 11:26:47 +0000 (13:26 +0200)
committerRobert Varga <rovarga@cisco.com>
Mon, 2 Jun 2014 11:57:51 +0000 (13:57 +0200)
commit65a839eac18fc1db255f07ac49012bc20019a7a6
treecd8a507350afa99a73525fc190266011d8b167e9
parentf7c4775f5d5a508d148fab14896c4977e50f0a26
BUG-1120: introduce NotificationListenerMap

Introduces encapsulation of the set of listeners, such that
modifications and lookup are isolated fromt the rest of the
implementation -- thus clearly defining the entry points.

Also fixes a possible iteration failure if concurrent modification
happens while a interest listener is being added.

Change-Id: I96e0260d372425d261b352b229ae293e638c287c
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/sal/binding/impl/NotificationBrokerImpl.java
opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/sal/binding/impl/NotificationListenerMap.java [new file with mode: 0644]