2 * Copyright © 2017 AT&T, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.transportpce.pce.utils;
10 import com.google.common.util.concurrent.ListenableFuture;
11 import java.util.concurrent.TimeUnit;
12 import org.opendaylight.mdsal.binding.api.NotificationPublishService;
13 import org.opendaylight.yangtools.yang.binding.Notification;
14 import org.slf4j.Logger;
15 import org.slf4j.LoggerFactory;
17 public class NotificationPublishServiceMock implements NotificationPublishService {
19 private static final Logger LOG = LoggerFactory.getLogger(NotificationPublishServiceMock.class);
22 public void putNotification(Notification notification) throws InterruptedException {
23 LOG.info("putNotification");
27 public ListenableFuture<?> offerNotification(Notification notification) {
28 LOG.info("offerNotification");
29 throw new UnsupportedOperationException("offerNotification is not implemented");
33 public ListenableFuture<?> offerNotification(Notification notification, int timeout, TimeUnit unit)
34 throws InterruptedException {
35 LOG.info("offerNotification");
36 throw new UnsupportedOperationException("offerNotification is not implemented");