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 DataObject> |
read(LogicalDatastoreType store,
InstanceIdentifier<T> path)
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 DataObject> com.google.common.util.concurrent.FluentFuture<Optional<T>> read(LogicalDatastoreType store, InstanceIdentifier<T> path)
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
store
- Logical data store from which read should occur.path
- Path which uniquely identifies subtree which client want to
readReadFailedException
or an exception derived from ReadFailedException.public Object getIdentifier()
getIdentifier
in interface AsyncTransaction<InstanceIdentifier<?>,DataObject>
getIdentifier
in interface org.opendaylight.yangtools.concepts.Identifiable<Object>
public void close()
AsyncReadTransaction
close
in interface AutoCloseable
close
in interface AsyncReadTransaction<InstanceIdentifier<?>,DataObject>
Copyright © 2019 OpenDaylight. All rights reserved.