curator-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Libucha <mlibu...@gmail.com>
Subject POST_INITIALIZED_EVENT
Date Fri, 17 May 2013 15:10:18 GMT
I'm not clear on the guarantees for the POST_INITIALIZED_EVENT StartMode
for PathChilidrenCache. Specifically, what happens to changes that would
cause events to be posted to a listener which occur between the call to
start(StartMode.POST_INITIALIZED_EVENT) and the arrival of the INITIALIZED
event?

Are they (1) included in priming, (2) not included in the priming but
captured and delivered after INITIALIZED event, (3) dropped (probably not
-- just checking), or (4) something else completely?

Another way to frame this question is how to best use this option without
any changes slipping through. Is it:

pcc = new PathChildrenCache(...);
pcc.getListenable().addListener(listener);
pcc.start(StartMode.POST_INITIALIZED_EVENT);

and then ignore everything in the listener until an INITIALIZED event
arrives?

Thanks,

Mark

Mime
View raw message