Class TransactionChanges
- java.lang.Object
-
- com.yahoo.vespa.curator.transaction.TransactionChanges
-
public class TransactionChanges extends java.lang.Object
Records the set of changes which will happen as part of a transaction- Author:
- bratseth
-
-
Constructor Summary
Constructors Constructor Description TransactionChanges()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCreate(java.lang.String path)
Adds creation of an absolute path to the set of changes made by thisvoid
addDelete(java.lang.String path)
Adds deletion of an absolute path to the set of changes made by thisboolean
create(java.lang.String path)
Returns whether the changes include creating this absolute pathboolean
createsChildrenOf(java.lang.String parentPath)
Returns whether the changes include creating any (proper) children of the given pathboolean
delete(java.lang.String path)
Returns whether the changes include deleting this absolute pathjava.lang.String
toString()
-
-
-
Method Detail
-
create
public boolean create(java.lang.String path)
Returns whether the changes include creating this absolute path
-
createsChildrenOf
public boolean createsChildrenOf(java.lang.String parentPath)
Returns whether the changes include creating any (proper) children of the given path
-
addCreate
public void addCreate(java.lang.String path)
Adds creation of an absolute path to the set of changes made by this
-
delete
public boolean delete(java.lang.String path)
Returns whether the changes include deleting this absolute path
-
addDelete
public void addDelete(java.lang.String path)
Adds deletion of an absolute path to the set of changes made by this
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-