Class ArrayBasedRelationLockHolder

java.lang.Object
de.hybris.platform.catalog.jalo.synchronization.ArrayBasedRelationLockHolder

public class ArrayBasedRelationLockHolder extends Object
Provides locking facility by inspecting relation attributes to be written.

Generally a thread must wait for another one if it tries to write a attribute belonging to a relation type with a already locked attribute and common items involved. That may be common items within the set of referenced items or occurrence of the attribute owning item in the set of referenced items in the other attribute.