コード例 #1
0
 public void start() {
   if (t.isAlive()) {
     log.warn(t + " is already started...");
     return;
   }
   t.start();
 }
コード例 #2
0
 public void stop() {
   CountDownLatch stopped = t.stopped;
   t.done = true;
   try {
     stopped.await();
   } catch (InterruptedException e) {
     log.error("Problem waiting for CheckpointManager to stop", e);
     t.interrupt();
   }
 }