Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Do not use passive connections
[controller.git]
/
opendaylight
/
md-sal
/
sal-binding-broker
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
md
/
sal
/
binding
/
compat
/
HeliumNotificationProviderServiceAdapter.java
diff --git
a/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/compat/HeliumNotificationProviderServiceAdapter.java
b/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/compat/HeliumNotificationProviderServiceAdapter.java
index 24376d64821f9f0028b40590c635cba0b085d337..3a2812d63d10ddc5170561af084514269348d05c 100644
(file)
--- a/
opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/compat/HeliumNotificationProviderServiceAdapter.java
+++ b/
opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/compat/HeliumNotificationProviderServiceAdapter.java
@@
-16,13
+16,15
@@
import org.opendaylight.yangtools.yang.binding.Notification;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-public class HeliumNotificationProviderServiceAdapter extends HeliumNotificationServiceAdapter implements NotificationProviderService, AutoCloseable {
+@Deprecated(forRemoval = true)
+public class HeliumNotificationProviderServiceAdapter extends HeliumNotificationServiceAdapter
+ implements NotificationProviderService {
private static final Logger LOG = LoggerFactory.getLogger(HeliumNotificationProviderServiceAdapter.class);
private final NotificationPublishService notificationPublishService;
private static final Logger LOG = LoggerFactory.getLogger(HeliumNotificationProviderServiceAdapter.class);
private final NotificationPublishService notificationPublishService;
- public HeliumNotificationProviderServiceAdapter(NotificationPublishService notificationPublishService,
-
NotificationService notificationService) {
+ public HeliumNotificationProviderServiceAdapter(
final
NotificationPublishService notificationPublishService,
+
final
NotificationService notificationService) {
super(notificationService);
this.notificationPublishService = notificationPublishService;
}
super(notificationService);
this.notificationPublishService = notificationPublishService;
}
@@
-32,7
+34,7
@@
public class HeliumNotificationProviderServiceAdapter extends HeliumNotification
try {
notificationPublishService.putNotification(notification);
} catch (InterruptedException e) {
try {
notificationPublishService.putNotification(notification);
} catch (InterruptedException e) {
- LOG.error("Notification publication was interupted
: " +
e);
+ LOG.error("Notification publication was interupted
",
e);
}
}
}
}
@@
-41,19
+43,18
@@
public class HeliumNotificationProviderServiceAdapter extends HeliumNotification
try {
notificationPublishService.putNotification(notification);
} catch (InterruptedException e) {
try {
notificationPublishService.putNotification(notification);
} catch (InterruptedException e) {
- LOG.error("Notification publication was interupted
: " +
e);
+ LOG.error("Notification publication was interupted
",
e);
}
}
@Override
public ListenerRegistration<NotificationInterestListener> registerInterestListener(
}
}
@Override
public ListenerRegistration<NotificationInterestListener> registerInterestListener(
- NotificationInterestListener interestListener) {
+
final
NotificationInterestListener interestListener) {
throw new UnsupportedOperationException("InterestListener is not supported.");
}
@Override
throw new UnsupportedOperationException("InterestListener is not supported.");
}
@Override
- public void close()
throws Exception
{
+ public void close() {
}
}
-
}
}