Return-Path: X-Original-To: apmail-curator-user-archive@minotaur.apache.org Delivered-To: apmail-curator-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A5EB910571 for ; Tue, 11 Jun 2013 03:54:10 +0000 (UTC) Received: (qmail 24720 invoked by uid 500); 11 Jun 2013 03:54:09 -0000 Delivered-To: apmail-curator-user-archive@curator.apache.org Received: (qmail 24684 invoked by uid 500); 11 Jun 2013 03:54:06 -0000 Mailing-List: contact user-help@curator.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@curator.incubator.apache.org Delivered-To: mailing list user@curator.incubator.apache.org Received: (qmail 24676 invoked by uid 99); 11 Jun 2013 03:54:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jun 2013 03:54:03 +0000 X-ASF-Spam-Status: No, hits=-1997.9 required=5.0 tests=ALL_TRUSTED,HTML_MESSAGE,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 11 Jun 2013 03:54:02 +0000 Received: (qmail 24633 invoked by uid 99); 11 Jun 2013 03:53:42 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jun 2013 03:53:42 +0000 Received: from localhost (HELO mail-la0-f54.google.com) (127.0.0.1) (smtp-auth username vines, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jun 2013 03:53:41 +0000 Received: by mail-la0-f54.google.com with SMTP id ec20so6293468lab.41 for ; Mon, 10 Jun 2013 20:53:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=p6vX8NvZkt4ZSzxrEH8gkA/M/Nf/G+/lCsuqx2ovQds=; b=ZQK67s4bChOg/ajuaZb9pgZqwOLGdx6r2eYVn1EPU4eptZSXKJfRqDGbfchD4CpABB SEJ2tn3D6Lv2jWJaP+RcLW6a+o60K8PqXzSMAuM/TQSB6A5MOQwpi2EkiYeuoIifQFWV wXfl2BF30etnrcBwprhg6oEwU1rfazlGEBnwSMqOZifxTqeqJIP6/mju8vyD0B+y2sk/ FGZmQmmSSBrs0D6hBKp77FiJJP54uwZP4HZqbDdoVF7OY73gduO/lparF5xhAojXum4T dCUUIZC40DA/Tl5wWdLsC3TxqkXRibe2HlinB4qB9aQySlM7G4/kkS6rrSBT22XaR80Z wZ/A== X-Received: by 10.152.19.40 with SMTP id b8mr2493670lae.34.1370922819480; Mon, 10 Jun 2013 20:53:39 -0700 (PDT) MIME-Version: 1.0 Reply-To: vines@apache.org Received: by 10.114.5.163 with HTTP; Mon, 10 Jun 2013 20:52:59 -0700 (PDT) In-Reply-To: <57AC621B-9933-4FE3-ADD5-220EFB28E0D9@jordanzimmerman.com> References: <57AC621B-9933-4FE3-ADD5-220EFB28E0D9@jordanzimmerman.com> From: John Vines Date: Mon, 10 Jun 2013 23:52:59 -0400 Message-ID: Subject: Re: Cache block on start To: user@curator.incubator.apache.org Content-Type: multipart/alternative; boundary=089e01493b16ab759004ded8d74b X-Virus-Checked: Checked by ClamAV on apache.org --089e01493b16ab759004ded8d74b Content-Type: text/plain; charset=ISO-8859-1 I'm currently doing that, but I'm under the impression that just starts the background processes in building the cache, not block until the cache is fully populated. On Mon, Jun 10, 2013 at 10:50 PM, Jordan Zimmerman < jordan@jordanzimmerman.com> wrote: > Pass BUILD_INITIAL_CACHE for the start mode. > > On Jun 10, 2013, at 7:27 PM, John Vines wrote: > > > I'm using a PathChildrenCache for maintaining some state information in > my code, including a listener event. But when I first start up my process > it takes a while for the cache to update (and subsequently the listener > events to trigger and populate another cache). Is there a way to force the > cache to build, at start time or otherwise, that will still trigger > listener events? I have no guarantees that the listeners will trigger when > I start, so I cannot poll on that either. > > > > Thanks > > John > > --089e01493b16ab759004ded8d74b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I'm currently doing that, but I'm under the impres= sion that just starts the background processes in building the cache, not b= lock until the cache is fully populated.

On Mon, Jun 10, 2013 at 10:50 PM, Jordan Zim= merman <jordan@jordanzimmerman.com> wrote:
Pass BUILD_INITIAL_CACHE for the start mode.

On Jun 10, 2013, at 7:27 PM, John Vines <vines@apache.org> wrote:

> I'm using a PathChildrenCache for maintaining some state informati= on in my code, including a listener event. But when I first start up my pro= cess it takes a while for the cache to update (and subsequently the listene= r events to trigger and populate another cache). Is there a way to force th= e cache to build, at start time or otherwise, that will still trigger liste= ner events? I have no guarantees that the listeners will trigger when I sta= rt, so I cannot poll on that either.
>
> Thanks
> John


--089e01493b16ab759004ded8d74b--