public void stop(){
  executor.shutdown();
  try {
    executor.awaitTermination(TERMINATE_DELAY,TimeUnit.SECONDS);
  }
 catch (  Exception e) {
    _logger.error("TimeOut occured while waiting for Cleaning thread to end.");
    if (!executor.isShutdown()) {
      executor.shutdownNow();
    }
  }
}

public void stop ( ) { executor . shutdown ( ) ; try { executor . awaitTermination ( TERMINATE_DELAY , TimeUnit . SECONDS ) ; } catch ( Exception e ) { _logger . error ( "TimeOut occured while waiting for Cleaning thread to end." ) ; if ( ! executor . isShutdown ( ) ) { executor . shutdownNow ( ) ; } } }
stop cache cleaning thread .
