2 * Copyright (c) 2014 Cisco Systems, 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.controller.md.sal.dom.spi;
10 import com.google.common.collect.ForwardingObject;
11 import com.google.common.util.concurrent.ListenableFuture;
12 import java.util.concurrent.TimeUnit;
13 import org.opendaylight.controller.md.sal.dom.api.DOMNotification;
14 import org.opendaylight.controller.md.sal.dom.api.DOMNotificationPublishService;
17 * Utility implementations of {@link DOMNotificationPublishService} which forwards
18 * all requests to a delegate instance.
20 * @deprecated Use {@link org.opendaylight.mdsal.dom.spi.ForwardingDOMNotificationPublishService} instead.
23 public abstract class ForwardingDOMNotificationPublishService extends ForwardingObject
24 implements DOMNotificationPublishService {
26 protected abstract DOMNotificationPublishService delegate();
29 public ListenableFuture<?> putNotification(final DOMNotification notification) throws InterruptedException {
30 return delegate().putNotification(notification);
34 public ListenableFuture<?> offerNotification(final DOMNotification notification) {
35 return delegate().offerNotification(notification);
39 public ListenableFuture<?> offerNotification(final DOMNotification notification, final long timeout,
40 final TimeUnit unit) throws InterruptedException {
41 return delegate().offerNotification(notification, timeout, unit);