Interface DataTreeSnapshot
-
- All Superinterfaces:
EffectiveModelContextProvider
- All Known Subinterfaces:
CursorAwareDataTreeModification
,CursorAwareDataTreeSnapshot
,DataTreeModification
public interface DataTreeSnapshot extends EffectiveModelContextProvider
Read-only snapshot of aDataTree
. The snapshot is stable and isolated, e.g. data tree changes occurring after the snapshot has been taken are not visible through the snapshot.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NonNull DataTreeModification
newModification()
Create a new data tree modification based on this snapshot, using the specified data application strategy.Optional<NormalizedNode>
readNode(YangInstanceIdentifier path)
Read a particular node from the snapshot.-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.EffectiveModelContextProvider
getEffectiveModelContext
-
-
-
-
Method Detail
-
readNode
Optional<NormalizedNode> readNode(YangInstanceIdentifier path)
Read a particular node from the snapshot.- Parameters:
path
- Path of the node- Returns:
- Optional result encapsulating the presence and value of the node
-
newModification
@NonNull DataTreeModification newModification()
Create a new data tree modification based on this snapshot, using the specified data application strategy.- Returns:
- A new data tree modification
-
-