public class ForwardingReadTransaction extends ForwardingTransaction implements ReadTransaction
ReadTransaction
implementation which forwards all interface method invocation to a delegate instance.Constructor and Description |
---|
ForwardingReadTransaction(ReadTransaction delegate) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this transaction and releases all resources associated with it.
|
protected ReadTransaction |
delegate() |
com.google.common.util.concurrent.FluentFuture<Boolean> |
exists(LogicalDatastoreType store,
InstanceIdentifier<?> path)
Determines if data data exists in the provided logical data store located at the provided path.
|
<T extends DataObject> |
read(LogicalDatastoreType store,
InstanceIdentifier<T> path)
Reads data from the provided logical data store located at the provided path.
|
getIdentifier
public ForwardingReadTransaction(ReadTransaction delegate)
protected ReadTransaction delegate()
delegate
in class ForwardingTransaction
public <T extends DataObject> com.google.common.util.concurrent.FluentFuture<Optional<T>> read(LogicalDatastoreType store, InstanceIdentifier<T> path)
ReadOperations
If the target is a subtree, then the whole subtree is read (and will be accessible from the returned data object).
read
in interface ReadOperations
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 com.google.common.util.concurrent.FluentFuture<Boolean> exists(LogicalDatastoreType store, InstanceIdentifier<?> path)
ReadOperations
Default implementation just delegates to ReadOperations.read(LogicalDatastoreType, InstanceIdentifier)
. Implementations
are recommended to override with a more efficient implementation.
exists
in interface ReadOperations
store
- Logical data store from which read should occur.path
- Path which uniquely identifies subtree which client want to readBoolean.TRUE
.
Boolean.FALSE
.ReadFailedException
or an exception derived
from ReadFailedException.public void close()
ReadTransaction
close
in interface AutoCloseable
close
in interface ReadTransaction
Copyright © 2019 OpenDaylight. All rights reserved.