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.sal.core.spi.data;
10 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
11 import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
13 import com.google.common.base.Optional;
14 import com.google.common.util.concurrent.ListenableFuture;
16 public interface DOMStoreReadTransaction extends DOMStoreTransaction {
20 * Reads data from provided logical data store located at provided path
24 * Path which uniquely identifies subtree which client want to
26 * @return Listenable Future which contains read result
28 * <li>If data at supplied path exists the {@link java.util.concurrent.Future#get()}
29 * returns Optional object containing data
30 * <li>If data at supplied path does not exists the
31 * {@link java.util.concurrent.Future#get()} returns {@link Optional#absent()}.
34 ListenableFuture<Optional<NormalizedNode<?,?>>> read(YangInstanceIdentifier path);