public interface BooleanSignal
void setRed()
void setGreen()
throws InterruptedException
void waitGreen()
throws InterruptedException
InterruptedException - if any thread interrupted the current thread before or while
the current thread was waiting for a notification. The
interrupted status of the current thread is cleared
when this exception is thrown.boolean isGreen()
Copyright © 2017. All rights reserved.