1 /*2 * (c) Rob Gordon 20053 */4 package org.oddjob.devguide;5 6 public class StoppingJob implements Runnable {7 8 public void run() {9 synchronized(this) {10 try {11 wait();12 } catch (InterruptedException e) {13 System.out.println("OK - I'll stop.");14 }15 }16 }17 }18