X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-common-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fcommon%2Fapi%2Fdata%2FAsyncReadTransaction.java;h=afa86704ff7de0e17c12b3a15f401f9c88f06232;hb=ea4f0324d3384918491ed9cc844f53a918a541e8;hp=e1cd4a712a0d9804ac1846a8e8bf4ad6f23dc8ca;hpb=5135f2d97f0886632f3ad3b7160a3be54909810f;p=controller.git diff --git a/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/data/AsyncReadTransaction.java b/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/data/AsyncReadTransaction.java index e1cd4a712a..afa86704ff 100644 --- a/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/data/AsyncReadTransaction.java +++ b/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/data/AsyncReadTransaction.java @@ -9,12 +9,9 @@ package org.opendaylight.controller.md.sal.common.api.data; import org.opendaylight.yangtools.concepts.Path; -import com.google.common.base.Optional; -import com.google.common.util.concurrent.ListenableFuture; - /** * - * Provides a stateful read view of the data tree. + * Marker interface for stateful read view of the data tree. * *

* View of the data tree is a stable point-in-time snapshot of the current data tree state when @@ -47,9 +44,9 @@ import com.google.common.util.concurrent.ListenableFuture; *

* Note: example contains blocking calls on future only to illustrate * that action happened after other asynchronous action. Use of blocking call - * {@link ListenableFuture#get()} is discouraged for most uses and you should - * use - * {@link com.google.common.util.concurrent.Futures#addCallback(ListenableFuture, com.google.common.util.concurrent.FutureCallback)} + * {@link com.google.common.util.concurrent.ListenableFuture#get()} is discouraged for most + * uses and you should use + * {@link com.google.common.util.concurrent.Futures#addCallback(com.google.common.util.concurrent.ListenableFuture, com.google.common.util.concurrent.FutureCallback)} * or other functions from {@link com.google.common.util.concurrent.Futures} to * register more specific listeners. * @@ -58,30 +55,10 @@ import com.google.common.util.concurrent.ListenableFuture; * tree * @param * Type of data (payload), which represents data payload + * + * @see org.opendaylight.controller.md.sal.binding.api.ReadTransaction + * @see org.opendaylight.controller.md.sal.dom.api.DOMDataReadTransaction */ public interface AsyncReadTransaction

, D> extends AsyncTransaction { - /** - * - * Reads data from 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, P path); - }