2 * Copyright (c) 2017 Pantheon Technologies, s.ro. 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.mdsal.dom.spi.shard;
10 import com.google.common.annotations.Beta;
11 import java.util.Collection;
12 import org.eclipse.jdt.annotation.NonNull;
13 import org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier;
14 import org.opendaylight.mdsal.dom.api.DOMDataTreeListener;
15 import org.opendaylight.yangtools.concepts.ListenerRegistration;
18 * Utility interface for objects dispatching events to {@link DOMDataTreeListener}.
20 * @author Robert Varga
22 * @deprecated This interface is scheduled for removal in the next major release.
24 @Deprecated(forRemoval = true)
26 public interface DOMDataTreeListenerRegistry {
27 <T extends DOMDataTreeListener> @NonNull ListenerRegistration<T> registerListener(@NonNull T listener,
28 @NonNull Collection<DOMDataTreeIdentifier> subtrees, boolean allowRxMerges);