2 * Copyright (c) 2016 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.netconf.sal.streams.listeners;
10 import io.netty.channel.Channel;
14 * Base interface for both listeners({@link ListenerAdapter},
15 * {@link NotificationListenerAdapter}).
17 interface BaseListenerInterface extends AutoCloseable {
20 * Return all subscribers of listener.
22 * @return set of subscribers
24 Set<Channel> getSubscribers();
27 * Checks if exists at least one {@link Channel} subscriber.
29 * @return True if exist at least one {@link Channel} subscriber, false
32 boolean hasSubscribers();
39 String getStreamName();
46 String getOutputType();