main/src/test/java/org/onap/policy/pap/main/comm/Threaded.java
/**
     * Starts a background thread.
     *
     * @param runner what should be executed in the background thread
     * @throws IllegalStateException if a background thread is already running
     */
Starts a background thread.
@param runner what should be executed in the background thread
@throws IllegalStateException if a background thread is already running
Starts a background thread . @param runner what should be executed in the background thread @throws IllegalStateException if a background thread is already running
protected void startThread(Runnable runner) {
        if (thread != null) {
            throw new IllegalStateException("a background thread is already running");
        }
        thread = new Thread(runner);
        thread.setDaemon(true);
        thread.start();
    }
protected void startThread ( Runnable runner ) { if ( thread != null ) { throw new IllegalStateException ( "a background thread is already running" ) ; } thread = new Thread ( runner ) ; thread . setDaemon ( true ) ; thread . start ( ) ; }
Starts a background thread.
Starts a background thread .