src/org/apache/commons/threadpool/MTQueue.java
public synchronized Object remove(long timeout) {
        Object answer = removeNoWait();
        if (answer == null) {
            try {
                wait(timeout);
            } catch (InterruptedException e) {
                log.error("Thread was interrupted: " + e, e);
            }
            answer = removeNoWait();
        }
        return answer;
    }
/**
     * Removes the first object from the queue, blocking only up to the given
     * timeout time.
     */
Removes the first object from the queue, blocking only up to the given
timeout time.
Removes the first object from the queue blocking only up to the given timeout time .
public synchronized Object remove(long timeout) {
        Object answer = removeNoWait();
        if (answer == null) {
            try {
                wait(timeout);
            } catch (InterruptedException e) {
                log.error("Thread was interrupted: " + e, e);
            }
            answer = removeNoWait();
        }
        return answer;
    }
public synchronized Object remove ( long timeout ) { Object answer = removeNoWait ( ) ; if ( answer == null ) { try { wait ( timeout ) ; } catch ( InterruptedException e ) { log . error ( "Thread was interrupted: " + e , e ) ; } answer = removeNoWait ( ) ; } return answer ; }
Removes the first object from the queue, blocking only up to the given
 timeout time.
Removes the first object from the queue blocking only up to the given timeout time .