Class ChildOrderConflictHandler
java.lang.Object
org.apache.jackrabbit.oak.plugins.commit.ChildOrderConflictHandler
- All Implemented Interfaces:
PartialConflictHandler
This conflict handler instance takes care of properly merging conflicts
occurring by concurrent reorder operations.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jackrabbit.oak.spi.commit.PartialConflictHandler
PartialConflictHandler.Resolution -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddExistingNode(NodeBuilder parent, String name, NodeState ours, NodeState theirs) The nodeourshas been added toparentwhich conflicts with nodetheirswhich has been added in the persistence store.addExistingProperty(NodeBuilder parent, PropertyState ours, PropertyState theirs) The propertyourshas been added toparentwhich conflicts with propertytheirswhich has been added in the persistence store.changeChangedProperty(NodeBuilder parent, PropertyState ours, PropertyState theirs) The propertyourshas been changed inparentwhile it was also changed to a different value (theirs) in the persistence store.changeDeletedNode(NodeBuilder parent, String name, NodeState ours) The nodeourshas been changed inparentwhile it was removed in the persistence store.changeDeletedProperty(NodeBuilder parent, PropertyState ours) The propertyourshas been changed inparentwhile it was removed in the persistence store.deleteChangedNode(NodeBuilder parent, String name, NodeState theirs) The nodetheirschanged in the persistence store while it has been deleted locally.deleteChangedProperty(NodeBuilder parent, PropertyState theirs) The propertytheirschanged in the persistence store while it has been deleted locally.deleteDeletedNode(NodeBuilder parent, String name) The nodenamehas been removed inparentwhile it was also removed in the persistence store.deleteDeletedProperty(NodeBuilder parent, PropertyState ours) The propertyourshas been removed inparentwhile it was also removed in the persistence store.
-
Constructor Details
-
ChildOrderConflictHandler
public ChildOrderConflictHandler()
-
-
Method Details
-
addExistingProperty
public PartialConflictHandler.Resolution addExistingProperty(NodeBuilder parent, PropertyState ours, PropertyState theirs) Description copied from interface:PartialConflictHandlerThe propertyourshas been added toparentwhich conflicts with propertytheirswhich has been added in the persistence store.- Specified by:
addExistingPropertyin interfacePartialConflictHandler- Parameters:
parent- root of the conflictours- our version of the propertytheirs- their version of the property- Returns:
PartialConflictHandler.Resolutionof the conflict ornull
-
changeDeletedProperty
public PartialConflictHandler.Resolution changeDeletedProperty(NodeBuilder parent, PropertyState ours) Description copied from interface:PartialConflictHandlerThe propertyourshas been changed inparentwhile it was removed in the persistence store.- Specified by:
changeDeletedPropertyin interfacePartialConflictHandler- Parameters:
parent- root of the conflictours- our version of the property- Returns:
PartialConflictHandler.Resolutionof the conflict ornull
-
changeChangedProperty
public PartialConflictHandler.Resolution changeChangedProperty(NodeBuilder parent, PropertyState ours, PropertyState theirs) Description copied from interface:PartialConflictHandlerThe propertyourshas been changed inparentwhile it was also changed to a different value (theirs) in the persistence store.- Specified by:
changeChangedPropertyin interfacePartialConflictHandler- Parameters:
parent- root of the conflictours- our version of the propertytheirs- their version of the property- Returns:
PartialConflictHandler.Resolutionof the conflict ornull
-
deleteDeletedProperty
public PartialConflictHandler.Resolution deleteDeletedProperty(NodeBuilder parent, PropertyState ours) Description copied from interface:PartialConflictHandlerThe propertyourshas been removed inparentwhile it was also removed in the persistence store.- Specified by:
deleteDeletedPropertyin interfacePartialConflictHandler- Parameters:
parent- root of the conflictours- our version of the property- Returns:
PartialConflictHandler.Resolutionof the conflict ornull
-
deleteChangedProperty
public PartialConflictHandler.Resolution deleteChangedProperty(NodeBuilder parent, PropertyState theirs) Description copied from interface:PartialConflictHandlerThe propertytheirschanged in the persistence store while it has been deleted locally.- Specified by:
deleteChangedPropertyin interfacePartialConflictHandler- Parameters:
parent- root of the conflicttheirs- their version of the property- Returns:
PartialConflictHandler.Resolutionof the conflict ornull
-
addExistingNode
public PartialConflictHandler.Resolution addExistingNode(NodeBuilder parent, String name, NodeState ours, NodeState theirs) Description copied from interface:PartialConflictHandlerThe nodeourshas been added toparentwhich conflicts with nodetheirswhich has been added in the persistence store.- Specified by:
addExistingNodein interfacePartialConflictHandler- Parameters:
parent- root of the conflictname- name of the nodeours- our version of the nodetheirs- their version of the node- Returns:
PartialConflictHandler.Resolutionof the conflict ornull
-
changeDeletedNode
public PartialConflictHandler.Resolution changeDeletedNode(NodeBuilder parent, String name, NodeState ours) Description copied from interface:PartialConflictHandlerThe nodeourshas been changed inparentwhile it was removed in the persistence store.- Specified by:
changeDeletedNodein interfacePartialConflictHandler- Parameters:
parent- root of the conflictname- name of the nodeours- our version of the node- Returns:
PartialConflictHandler.Resolutionof the conflict ornull
-
deleteChangedNode
public PartialConflictHandler.Resolution deleteChangedNode(NodeBuilder parent, String name, NodeState theirs) Description copied from interface:PartialConflictHandlerThe nodetheirschanged in the persistence store while it has been deleted locally.- Specified by:
deleteChangedNodein interfacePartialConflictHandler- Parameters:
parent- root of the conflictname- name of the nodetheirs- their version of the node- Returns:
PartialConflictHandler.Resolutionof the conflict ornull
-
deleteDeletedNode
Description copied from interface:PartialConflictHandlerThe nodenamehas been removed inparentwhile it was also removed in the persistence store.- Specified by:
deleteDeletedNodein interfacePartialConflictHandler- Parameters:
parent- root of the conflictname- name of the node- Returns:
PartialConflictHandler.Resolutionof the conflict ornull
-