private static class DirectoryService.Rollback extends java.lang.Object implements NodeProcessor
Modifier and Type | Field and Description |
---|---|
private int |
updated |
Modifier | Constructor and Description |
---|---|
private |
Rollback() |
Modifier and Type | Method and Description |
---|---|
int |
getUpdated()
Get number of updated nodes.
|
java.lang.Object |
visit(Remapper service,
java.lang.String nodeId)
Implementation of the
NodeProcessor interface. |
public java.lang.Object visit(Remapper service, java.lang.String nodeId)
NodeProcessor
interface. This
method checks for presence of the lock object
and if
it is found then transaction is rolled back. If
lock object
describes backed up transaction then all
changes are reversed. If lock object
describes
transaction which is not backed up then no changes were done so it is
enough to just remove lock object
.visit
in interface NodeProcessor
service
- Remapper instance which is traversednodeId
- Node Idnull
to continue operation.public int getUpdated()