public class ForwardingReadTransaction extends com.google.common.collect.ForwardingObject implements ReadTransaction
ReadTransaction implementation which forwards all interface method
invocation to a delegate instance.| Modifier | Constructor and Description |
|---|---|
protected |
ForwardingReadTransaction(ReadTransaction delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this transaction and releases all resources associated with it.
|
protected ReadTransaction |
delegate() |
Object |
getIdentifier() |
<T extends TreeNode> |
read(LogicalDatastoreType store,
InstanceIdentifier<T> path,
BiConsumer<ReadFailedException,T> callback)
Reads data from the provided logical data store located at the provided path.
|
protected ForwardingReadTransaction(ReadTransaction delegate)
protected ReadTransaction delegate()
delegate in class com.google.common.collect.ForwardingObjectpublic <T extends TreeNode> void read(LogicalDatastoreType store, InstanceIdentifier<T> path, BiConsumer<ReadFailedException,T> callback)
ReadTransactionIf the target is a subtree, then the whole subtree is read (and will be accessible from the returned data object).
read in interface ReadTransactionT - result typestore - Logical data store from which read should occur.path - Path which uniquely identifies subtree which client want to
readcallback - result callbackpublic Object getIdentifier()
getIdentifier in interface AsyncTransaction<InstanceIdentifier<?>,TreeNode>getIdentifier in interface org.opendaylight.yangtools.concepts.Identifiable<Object>public void close()
AsyncReadTransactionclose in interface AutoCloseableclose in interface AsyncReadTransaction<InstanceIdentifier<?>,TreeNode>Copyright © 2019 OpenDaylight. All rights reserved.