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.ForwardingObject
public <T extends TreeNode> void read(LogicalDatastoreType store, InstanceIdentifier<T> path, BiConsumer<ReadFailedException,T> callback)
ReadTransaction
If the target is a subtree, then the whole subtree is read (and will be accessible from the returned data object).
read
in interface ReadTransaction
T
- 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 org.opendaylight.yangtools.concepts.Identifiable<Object>
public void close()
ReadTransaction
close
in interface AutoCloseable
close
in interface ReadTransaction
close
in interface org.opendaylight.yangtools.concepts.Registration
Copyright © 2019 OpenDaylight. All rights reserved.