@Beta public class BindingDOMReadTransactionAdapter extends AbstractForwardedTransaction<DOMDataTreeReadTransaction> implements ReadTransaction
Constructor and Description |
---|
BindingDOMReadTransactionAdapter(DOMDataTreeReadTransaction delegate,
BindingToNormalizedNodeCodec codec) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this transaction and releases all resources associated with it.
|
<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.
|
doRead, getCodec, getDelegate, getDelegateChecked, getIdentifier
public BindingDOMReadTransactionAdapter(DOMDataTreeReadTransaction delegate, BindingToNormalizedNodeCodec codec)
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 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.