org.ow2.util.pool.impl.enhanced.internal.lock.impl
Class BasicCondition
java.lang.Object
org.ow2.util.pool.impl.enhanced.internal.lock.impl.BasicCondition
- All Implemented Interfaces:
- java.util.concurrent.locks.Condition, ISignalClearableCondition
public class BasicCondition
- extends java.lang.Object
- implements ISignalClearableCondition
- Author:
- Gael Lalire
|
Constructor Summary |
BasicCondition(org.ow2.util.pool.impl.enhanced.internal.lock.impl.ILockWithSignalClearableConditionControl lockControl)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicCondition
public BasicCondition(org.ow2.util.pool.impl.enhanced.internal.lock.impl.ILockWithSignalClearableConditionControl lockControl)
await
public boolean await(java.lang.Long untilLong)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
signalAll
public void signalAll()
- Specified by:
signalAll in interface java.util.concurrent.locks.Condition
signalAllUnclearable
public void signalAllUnclearable()
- Specified by:
signalAllUnclearable in interface ISignalClearableCondition
signal
public void signal()
- Specified by:
signal in interface java.util.concurrent.locks.Condition
clearAllSignal
public void clearAllSignal()
- Description copied from interface:
ISignalClearableCondition
- Avoid all signals so signaled threads SHOULD not be unpark.
This is not guaranteed behavior so keep your check.
This imply that signal and signalAll methods do not
unpark threads immediately but only mark them as signaled.
- Specified by:
clearAllSignal in interface ISignalClearableCondition
await
public void await()
throws java.lang.InterruptedException
- Specified by:
await in interface java.util.concurrent.locks.Condition
- Throws:
java.lang.InterruptedException
await
public boolean await(long time,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException
- Specified by:
await in interface java.util.concurrent.locks.Condition
- Throws:
java.lang.InterruptedException
awaitNanos
public long awaitNanos(long nanosTimeout)
throws java.lang.InterruptedException
- Specified by:
awaitNanos in interface java.util.concurrent.locks.Condition
- Throws:
java.lang.InterruptedException
awaitUninterruptibly
public void awaitUninterruptibly()
- Specified by:
awaitUninterruptibly in interface java.util.concurrent.locks.Condition
awaitUntil
public boolean awaitUntil(java.util.Date deadline)
throws java.lang.InterruptedException
- Specified by:
awaitUntil in interface java.util.concurrent.locks.Condition
- Throws:
java.lang.InterruptedException
Copyright © 2007-2009 OW2 Consortium. All Rights Reserved.