curator-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trevor Hartman <>
Subject PathChildrenCache: blocking rebuild that *does* generate events
Date Tue, 18 Mar 2014 18:27:35 GMT
In PathChildrenCache source, I see rebuild’s docs say: 

     * NOTE: this is a BLOCKING method. Completely rebuild the internal cache by querying
     * for all needed data WITHOUT generating any events to send to listeners.

What if I want to block until cache is fully consistent, yet still fire all corresponding
events? StartMode.POST_INITIALIZED_EVENT is nearly what I want, except I want to block until
it’s done.

View raw message