src/org/apache/commons/threadpool/MTQueue.java
public synchronized Object remove() {
        while (true) {
            Object answer = removeNoWait();
            if (answer != null) {
                return answer;
            }
            try {
                wait(defaultTimeout);
            } catch (InterruptedException e) {
                log.error("Thread was interrupted: " + e, e);
            }
        }
    }
/**
     * Removes the first object from the queue, blocking until one is available.
     * Note that this method will never return null and could block forever.
     */
Removes the first object from the queue, blocking until one is available.
Note that this method will never return null and could block forever.
Removes the first object from the queue blocking until one is available . Note that this method will never return null and could block forever .
public synchronized Object remove() {
        while (true) {
            Object answer = removeNoWait();
            if (answer != null) {
                return answer;
            }
            try {
                wait(defaultTimeout);
            } catch (InterruptedException e) {
                log.error("Thread was interrupted: " + e, e);
            }
        }
    }
public synchronized Object remove ( ) { while ( true ) { Object answer = removeNoWait ( ) ; if ( answer != null ) { return answer ; } try { wait ( defaultTimeout ) ; } catch ( InterruptedException e ) { log . error ( "Thread was interrupted: " + e , e ) ; } } }
Removes the first object from the queue, blocking until one is available.
Removes the first object from the queue blocking until one is available .