package org.apache.catalina.tribes.transport.bio.util;
/**
- * The class <b>SingleRemoveSynchronizedAddLock</b> implement locking for accessing the queue
- * by a single remove thread and multiple add threads.
+ * The class <b>SingleRemoveSynchronizedAddLock</b> implement locking for
+ * accessing the queue by a single remove thread and multiple add threads.
*
* A thread is only allowed to be either the remove or
* an add thread.
* the remove thread will get the lock first.
*
* The remove thread removes all entries in the queue
- * at once and proceeses them without further
+ * at once and processes them without further
* polling the queue.
*
* The lock is not reentrant, in the sense, that all
public class SingleRemoveSynchronizedAddLock {
public SingleRemoveSynchronizedAddLock() {
+ // NO-OP
}
public SingleRemoveSynchronizedAddLock(boolean dataAvailable) {