Removal of EventBusChangeRecorder 26/81526/6
authorJaroslav Tóth <jtoth@frinx.io>
Wed, 10 Apr 2019 06:40:44 +0000 (08:40 +0200)
committerJaroslav Tóth <jtoth@frinx.io>
Thu, 2 May 2019 13:08:42 +0000 (15:08 +0200)
commit7750700d429c729a86ff3e3e49b002d0db0e9b18
treed67b3ce9e7094e353c89f87bce72e2267cb584c0
parent56bcd8a77160847c2b25201fe3a02f60096129ef
Removal of EventBusChangeRecorder

- Reasons to remove :
  1) AbstractCommonSubsriber notifies event bus and then event bus
     performs operations on AbstractCommonSubsriber - what is the
     reason for this indirection?
  2) AbstractCommonSubsriber does nearly nothing; only brokes input
     events to subscribers based on EventType.
  3) There are only two possible types of subsribers that have
     common parent in which all logic is performed.
- Correction of synchronization in AbstractCommonSubscriber -
  concurrent set is not enough, because in postData(..) method this
  set is accessed twice --> explicit sync using monitor or lock is
  required.

Change-Id: Iac70127b7ebbbbe0c0ff849120818ddf71278a94
Signed-off-by: Jaroslav Tóth <jtoth@frinx.io>
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/streams/listeners/AbstractCommonSubscriber.java
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/streams/listeners/BaseListenerInterface.java
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/streams/listeners/Event.java [deleted file]
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/streams/listeners/EventBusChangeRecorder.java [deleted file]
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/streams/listeners/EventType.java [deleted file]
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/streams/listeners/ListenerAdapter.java
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/streams/listeners/NotificationListenerAdapter.java
restconf/restconf-nb-rfc8040/src/test/java/org/opendaylight/restconf/nb/rfc8040/streams/listeners/ListenerAdapterTest.java