/*
* Copyright (c) 2021 PANTHEON.tech, s.r.o. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.opendaylight.mdsal.dom.api;
import com.google.common.annotations.Beta;
import com.google.common.util.concurrent.ListenableFuture;
import java.util.concurrent.TimeUnit;
import org.checkerframework.checker.index.qual.NonNegative;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.util.concurrent.FluentFutures;
/**
* A {@link DOMService} which allows its user to publish instance (YANG 1.1) {@link DOMNotification}s. It provides two
* styles of initiating the notification delivery, similar to {@link java.util.concurrent.BlockingQueue}:
*
*
a put-style method which waits until the implementation can accept the notification for delivery, and
*
an offer-style method, which attempts to enqueue the notification, but allows the caller to specify that it
* should never wait, or put an upper bound on how long it is going to wait
*
*/
@Beta
public interface DOMInstanceNotificationPublishService extends
DOMService {
/**
* Marker interface for an extension to {@link DOMInstanceNotificationPublishService}.
*/
interface Extension extends DOMService.Extension {
// Marker interface
}
/**
* Well-known value indicating that the implementation is currently not
* able to accept a notification.
*/
ListenableFuture