org.mule.util.concurrent
Class WaitableBoolean
java.lang.Object
org.mule.util.concurrent.AbstractSynchronizedVariable
org.mule.util.concurrent.WaitableBoolean
- All Implemented Interfaces:
- Executor
public class WaitableBoolean
- extends AbstractSynchronizedVariable
WaitableBoolean
public WaitableBoolean(boolean initialValue)
WaitableBoolean
public WaitableBoolean(boolean initialValue,
Object lock)
compareTo
public int compareTo(boolean other)
compareTo
public int compareTo(WaitableBoolean other)
compareTo
public int compareTo(Object other)
equals
public boolean equals(Object other)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class 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(Runnable action)
throws InterruptedException
- Throws:
InterruptedException
whenFalse
public void whenFalse(Runnable action)
throws InterruptedException
- Throws:
InterruptedException
whenEqual
public void whenEqual(boolean condition,
Runnable action)
throws InterruptedException
- Throws:
InterruptedException
whenNotEqual
public void whenNotEqual(boolean condition,
Runnable action)
throws InterruptedException
- Throws:
InterruptedException
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.