org.glite.ce.monitorapij.sensor
Class BooleanLock
java.lang.Object
org.glite.ce.monitorapij.sensor.BooleanLock
- public class BooleanLock
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BooleanLock
public BooleanLock()
BooleanLock
public BooleanLock(boolean initialValue)
setValue
public void setValue(boolean newValue)
waitToSetTrue
public boolean waitToSetTrue(long msTimeout)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
waitToSetFalse
public boolean waitToSetFalse(long msTimeout)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
isTrue
public boolean isTrue()
isFalse
public boolean isFalse()
waitUntilTrue
public boolean waitUntilTrue(long msTimeout)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
waitUntilFalse
public boolean waitUntilFalse(long msTimeout)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
waitUntilStateIs
public boolean waitUntilStateIs(boolean state,
long msTimeout)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException