Class AbstractDataTreeModificationCursor
- java.lang.Object
-
- org.opendaylight.controller.cluster.datastore.util.AbstractDataTreeModificationCursor
-
- All Implemented Interfaces:
AutoCloseable
,DataTreeModificationCursor
,DataTreeSnapshotCursor
- Direct Known Subclasses:
AbstractBatchedModificationsCursor
@Beta public abstract class AbstractDataTreeModificationCursor extends Object implements DataTreeModificationCursor
AbstractDataTreeModificationCursor
which tracks the current path. Subclasses can get the current path viacurrent()
. This class is NOT thread-safe.- Author:
- Thomas Pantelis
-
-
Constructor Summary
Constructors Constructor Description AbstractDataTreeModificationCursor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected YangInstanceIdentifier
current()
void
enter(Iterable<YangInstanceIdentifier.PathArgument> path)
void
enter(YangInstanceIdentifier.PathArgument child)
void
enter(YangInstanceIdentifier.PathArgument... path)
void
exit()
void
exit(int depth)
Optional<NormalizedNode<?,?>>
readNode(YangInstanceIdentifier.PathArgument child)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeModificationCursor
delete, merge, write
-
-
-
-
Method Detail
-
current
protected final YangInstanceIdentifier current()
-
enter
public final void enter(YangInstanceIdentifier.PathArgument child)
- Specified by:
enter
in interfaceDataTreeSnapshotCursor
-
enter
public final void enter(YangInstanceIdentifier.PathArgument... path)
- Specified by:
enter
in interfaceDataTreeSnapshotCursor
-
enter
public final void enter(Iterable<YangInstanceIdentifier.PathArgument> path)
- Specified by:
enter
in interfaceDataTreeSnapshotCursor
-
exit
public final void exit()
- Specified by:
exit
in interfaceDataTreeSnapshotCursor
-
exit
public final void exit(int depth)
- Specified by:
exit
in interfaceDataTreeSnapshotCursor
-
readNode
public final Optional<NormalizedNode<?,?>> readNode(YangInstanceIdentifier.PathArgument child)
- Specified by:
readNode
in interfaceDataTreeSnapshotCursor
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceDataTreeSnapshotCursor
-
-