org.mule.util.concurrent
Class WaitableBoolean
java.lang.Object
org.mule.util.concurrent.AbstractSynchronizedVariable
org.mule.util.concurrent.WaitableBoolean
- All Implemented Interfaces:
- edu.emory.mathcs.backport.java.util.concurrent.Executor
public class WaitableBoolean
- extends AbstractSynchronizedVariable
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
WaitableBoolean
public WaitableBoolean(boolean initialValue)
WaitableBoolean
public WaitableBoolean(boolean initialValue,
java.lang.Object lock)
compareTo
public int compareTo(boolean other)
compareTo
public int compareTo(WaitableBoolean other)
compareTo
public int compareTo(java.lang.Object other)
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
get
public boolean get()
set
public boolean set(boolean newValue)
compareAndSet
public boolean compareAndSet(boolean assumedValue,
boolean newValue)
complement
public boolean complement()
and
public boolean and(boolean b)
or
public boolean or(boolean b)
xor
public boolean xor(boolean b)
whenTrue
public void whenTrue(java.lang.Runnable action)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
whenFalse
public void whenFalse(java.lang.Runnable action)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
whenEqual
public void whenEqual(boolean condition,
java.lang.Runnable action)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
whenNotEqual
public void whenNotEqual(boolean condition,
java.lang.Runnable action)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.