Re: GenericFileExclusiveReadLockStrategy#prepareOnStartup() question

2015-11-20 Thread David Hoffer
Okay very good, that is what I thought but wanted to be sure. -Dave On Thu, Nov 19, 2015 at 11:42 PM, Claus Ibsen wrote: > No its only executed one time on the first poll. > > If you stop and remove the route, and add another similar route back, > then yeah its a new route/consumer and it will

Re: GenericFileExclusiveReadLockStrategy#prepareOnStartup() question

2015-11-19 Thread Claus Ibsen
No its only executed one time on the first poll. If you stop and remove the route, and add another similar route back, then yeah its a new route/consumer and it will be called again. On Fri, Nov 20, 2015 at 12:49 AM, David Hoffer wrote: > What is the lifecycle of > the GenericFileExclusiveReadLo

GenericFileExclusiveReadLockStrategy#prepareOnStartup() question

2015-11-19 Thread David Hoffer
What is the lifecycle of the GenericFileExclusiveReadLockStrategy#prepareOnStartup() method. I'm assuming that it will never be called more than once at startup...but is that correct? We store state in our custom GenericFileExclusiveReadLockStrategy class and the state is cleared when prepareOnSt