Re: ObservationManager's userData in Oak

2014-10-08 Thread Michael Dürig
On 8.10.14 10:46 , Marius Petria wrote: But is it guaranteed that all events dispatched as local events have the user data filled if available? Yes. In fact if you access the user data without first checking whether the event is local (JackrabbitEvent.isExternal) Oak will log a warning: "Ev

Re: ObservationManager's userData in Oak

2014-10-08 Thread Marius Petria
On 10/7/14, 11:27 PM, "Michael Dürig" wrote: > > >On 7.10.14 10:30 , Tommaso Teofili wrote: >> 2014-10-07 18:15 GMT+02:00 Rob Ryan : >> >>> I'm not so sure about the conclusion that because the events of >>>interest >>> are local you can safely use userData. IIUC under heavy load local >>>event

Re: ObservationManager's userData in Oak

2014-10-07 Thread Michael Dürig
ober 07, 2014 2:32 AM To: oak-dev@jackrabbit.apache.org Subject: Re: ObservationManager's userData in Oak Hi Michael, thanks for the information, despite the given limitations I think it could still work for my use case, as the distinction I need to make by means of userData should alway

Re: ObservationManager's userData in Oak

2014-10-07 Thread Tommaso Teofili
il.com] > Sent: Tuesday, October 07, 2014 2:32 AM > To: oak-dev@jackrabbit.apache.org > Subject: Re: ObservationManager's userData in Oak > > Hi Michael, > > thanks for the information, despite the given limitations I think it could > still work for my use case, as the

RE: ObservationManager's userData in Oak

2014-10-07 Thread Rob Ryan
? Thanks, -Rob -Original Message- From: Tommaso Teofili [mailto:tommaso.teof...@gmail.com] Sent: Tuesday, October 07, 2014 2:32 AM To: oak-dev@jackrabbit.apache.org Subject: Re: ObservationManager's userData in Oak Hi Michael, thanks for the information, despite the given limitati

Re: ObservationManager's userData in Oak

2014-10-07 Thread Tommaso Teofili
Hi Michael, thanks for the information, despite the given limitations I think it could still work for my use case, as the distinction I need to make by means of userData should always be on local events. Regards, Tommaso 2014-10-03 17:10 GMT+02:00 Michael Dürig : > > Hi Tommaso, > > Unfortunat

Re: ObservationManager's userData in Oak

2014-10-03 Thread Michael Dürig
Hi Tommaso, Unfortunately Oak has only limited support for user data as it cannot preserve commit boundaries in all cases (e.g. commits from other cluster nodes). See also http://jackrabbit.apache.org/oak/docs/differences.html#Observation Michael On 3.10.14 5:00 , Tommaso Teofili wrote:

ObservationManager's userData in Oak

2014-10-03 Thread Tommaso Teofili
Hi all, in the context of Sling [1][2] I am evaluating the possibility of using the ObservationManager#setUserData [3] as a way to signal which Sessions generated certain events in order to filter some having specific userData. I don't have the whole background about how userData is supported in