X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-binding-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fbinding%2Fapi%2FReadTransaction.java;h=cc85d4337b93d5b1a2322af009052b7c26091bd8;hb=c222e37f2a0f0f3f6266242fbea2d3b018f4e6e3;hp=a7b5f3295778c4f758e1c23785f3ef9fef9426bd;hpb=b2e6c299fad844633c8b40a2e180780f5774a4ae;p=controller.git diff --git a/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/md/sal/binding/api/ReadTransaction.java b/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/md/sal/binding/api/ReadTransaction.java index a7b5f32957..cc85d4337b 100644 --- a/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/md/sal/binding/api/ReadTransaction.java +++ b/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/md/sal/binding/api/ReadTransaction.java @@ -15,7 +15,32 @@ import org.opendaylight.yangtools.yang.binding.InstanceIdentifier; import com.google.common.base.Optional; import com.google.common.util.concurrent.ListenableFuture; +/** + * A transaction that provides read access to a logical data store. + *

+ * For more information on usage and examples, please see the documentation in {@link AsyncReadTransaction}. + */ public interface ReadTransaction extends AsyncReadTransaction, DataObject> { - @Override - ListenableFuture> read(LogicalDatastoreType store, InstanceIdentifier path); + + /** + * Reads data from the provided logical data store located at the provided path. + *

+ * If the target is a subtree, then the whole subtree is read (and will be + * accessible from the returned data object). + * + * @param store + * Logical data store from which read should occur. + * @param path + * Path which uniquely identifies subtree which client want to + * read + * @return Listenable Future which contains read result + *

+ */ + ListenableFuture> read(LogicalDatastoreType store, InstanceIdentifier path); }