public synchronized void execute ( Runnable command ) { if ( active . get ( ) ) { stop ( ) ; this . command = command ; start ( ) ; } else { this . command = command ; } }
Executes the specified command continuously if the executor is started .