Java - Runable confusion

As I have already mentioned I am pretty new to programming world.
I am currently facing a problem with runable. When I am checking the status of boolean shutdown the code is running all the time, instead of expected every 30 seconds.
My code so far: