2 * Copyright (c) 2019 PANTHEON.tech, s.r.o. 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.yangtools.yang.data.api.schema.tree;
10 import com.google.common.annotations.Beta;
11 import org.eclipse.jdt.annotation.NonNullByDefault;
12 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
15 * A read-only view of a {@link DataTree}. This provides access to MVCC access methods, but unlike {@link DataTree},
16 * it does not expose methods to affect internal state.
18 * @author Robert Varga
22 public interface ReadOnlyDataTree {
24 * Get the root path of this data tree.
26 * @return The tree's root path.
28 YangInstanceIdentifier getRootPath();
31 * Take a read-only point-in-time snapshot of the tree.
33 * @return Data tree snapshot.
35 DataTreeSnapshot takeSnapshot();