1 package test.mock.util;
3 import org.opendaylight.controller.sal.binding.codegen.impl.SingletonHolder;
4 import org.opendaylight.controller.sal.binding.impl.NotificationBrokerImpl;
5 import org.opendaylight.yangtools.yang.binding.Notification;
7 import java.util.Timer;
8 import java.util.TimerTask;
10 public class NotificationProviderServiceHelper {
11 private NotificationBrokerImpl notifBroker = new NotificationBrokerImpl(SingletonHolder.getDefaultNotificationExecutor());
13 public NotificationBrokerImpl getNotifBroker() {
17 public void pushDelayedNotification(final Notification notification, int delay) {
18 new Timer().schedule(new TimerTask() {
21 notifBroker.publish(notification);
26 public void pushNotification(final Notification notification) {
27 notifBroker.publish(notification);