Code example for ScheduledThreadPoolExecutor

Methods: shutdown, sleep

0
        if (log.isDebugEnabled())
        { 
            log.debug(".stopInternalClock Stopping internal clock daemon thread");
        } 
 
        timer.shutdown();
 
        try 
        { 
            // Sleep for 100 ms to await the internal timer 
            Thread.sleep(100);
        } 
        catch (InterruptedException e)
        { 
            log.info("Timer start wait interval interruped");
        } 
 
        timer = null;
    }