Am 16.07.15 um 17:09 schrieb Robert Munteanu:
> On Thu, Jul 9, 2015 at 3:55 PM, Bertrand Delacretaz
> <[email protected]> wrote:
>>   public interface StartLevelChangeBarrier {
>>     CountDownLatch getStartLevelLatch(int startLevel);
>>   }
>>
>> Modules can supply such a service so that the new start levels
>> sequencer waits for their CountDownLatches to go to zero before
>> proceeding to the next start level.
> 
> 
> If all they should do is wait, I'd rather expose something else that a
> CountDownLatch. If they can count down, they will count down, which is
> probably not what we want. I can imagine the hacks :-)
> 
> IMO the method could be
> 
>   void waitForStartLevel(int startLevel) throws InterruptedException;
> 
I'm also wondering if we really need a new API? Right now we have the
StartupHandler which has the waitWithStartup(bool) method. Well, not the
best API but can't we simply use that?

Carsten


-- 
Carsten Ziegeler
Adobe Research Switzerland
[email protected]

Reply via email to