main/src/test/java/org/onap/policy/pap/main/comm/Threaded.java
/**
     * Waits for the background thread to stop.
     *
     * @return {@code true} if the thread has stopped, {@code false} otherwise
     * @throws InterruptedException if this thread is interrupted while waiting
     */
Waits for the background thread to stop.
@return  true if the thread has stopped,  false otherwise
@throws InterruptedException if this thread is interrupted while waiting
Waits for the background thread to stop . @return true if the thread has stopped false otherwise @throws InterruptedException if this thread is interrupted while waiting
protected boolean waitStop() throws InterruptedException {
        if (thread != null) {
            Thread thread2 = thread;
            thread = null;
            thread2.join(MAX_WAIT_MS);
            return !thread2.isAlive();
        }
        return true;
    }
protected boolean waitStop ( ) throws InterruptedException { if ( thread != null ) { Thread thread2 = thread ; thread = null ; thread2 . join ( MAX_WAIT_MS ) ; return ! thread2 . isAlive ( ) ; } return true ; }
Waits for the background thread to stop.
Waits for the background thread to stop .