Re: Replace cluster-wide lock to itemstate-wide lock

2009-02-20 Thread Dominique Pfister
;>>ItemState state = (ItemState) >>>>> deletedStates.next(); >>>>>updateOneItemState(state, factory); >>>>>} >>>>> Iterator modifiedStates = local.modifiedSt

Re: Replace cluster-wide lock to itemstate-wide lock

2009-02-19 Thread defeng
t;>>> } >>>>Iterator addedStates = local.addedStates(); >>>>while (addedStates.hasNext()) { >>>> ItemState state = (ItemState) >>>> addedStates.next(); >>>>

Re: Replace cluster-wide lock to itemstate-wide lock

2009-02-19 Thread Dominique Pfister
(ItemState) addedStates.next(); >>>updateOneItemState(state, factory); >>> } >>>} >>> >>>private void updateOneItemState(ItemState state, >>> EventStateCollectionFactory factory) >>>throws Ref

Re: Replace cluster-wide lock to itemstate-wide lock

2009-02-19 Thread defeng
ItemStateException{ >> ChangeLog oneItemLog = new ChangeLog(); >>oneItemLog.added(state); >> try { >> doLock(state);//Only lock this state in the cluster >> beginUpdate(oneItemLog, factory, null).end(); >> }finally

Re: Replace cluster-wide lock to itemstate-wide lock

2009-02-19 Thread Dominique Pfister
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

Replace cluster-wide lock to itemstate-wide lock

2009-02-18 Thread defeng
(); }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.