Code example for ScheduledExecutorService

Methods: shutdown

0
    } 
  } 
 
  void shutdown() { 
    cancel(); 
    inactivityTimer.shutdown();
  } 
 
  private static final class DaemonThreadFactory implements ThreadFactory {
    public Thread newThread(Runnable runnable) {
      Thread thread = new Thread(runnable);
      thread.setDaemon(true);
      return thread;
    } 
  } 
 
}