;>>ItemState state = (ItemState)
>>>>> deletedStates.next();
>>>>>updateOneItemState(state, factory);
>>>>>}
>>>>> Iterator modifiedStates = local.modifiedSt
t;>>> }
>>>>Iterator addedStates = local.addedStates();
>>>>while (addedStates.hasNext()) {
>>>> ItemState state = (ItemState)
>>>> addedStates.next();
>>>>
(ItemState) addedStates.next();
>>>updateOneItemState(state, factory);
>>> }
>>>}
>>>
>>>private void updateOneItemState(ItemState state,
>>> EventStateCollectionFactory factory)
>>>throws Ref
ItemStateException{
>> ChangeLog oneItemLog = new ChangeLog();
>>oneItemLog.added(state);
>> try {
>> doLock(state);//Only lock this state in the cluster
>> beginUpdate(oneItemLog, factory, null).end();
>> }finally
temStateException,
> ItemStateException{
>ChangeLog oneItemLog = new ChangeLog();
>oneItemLog.added(state);
> try {
> doLock(state);//Only lock this state in the cluster
> beginUpdate(oneItemLog, factory, null).end();
> }fi
();
}finally{
unLock(state);
}
}
--
View this message in context:
http://www.nabble.com/Replace-cluster-wide-lock-to-itemstate-wide-lock-tp22083258p22083258.html
Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.