All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xyz.downgoon.mydk.concurrent.BooleanSignal Maven / Gradle / Ivy

There is a newer version: 0.3.0
Show newest version
package xyz.downgoon.mydk.concurrent;

public interface BooleanSignal {

	void setRed();

	void setGreen() throws InterruptedException;

	/**
	 * blocking unit green light turns on
	 * 
	 * @throws 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.
	 */
	void waitGreen() throws InterruptedException;

	boolean isGreen();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy