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;

Robert

-- 
Sent from my (old) computer

Reply via email to