private void runCleaning(){
  log.info("DatabaseCleaningService: Executing database cleaning");
  startTime=System.currentTimeMillis();
  int periodInDays=CleaningConfig.CLEANING_PERIOD;
  int SECURITY_MINIMUM_PERIOD=30;
  if (periodInDays > SECURITY_MINIMUM_PERIOD) {
    delegateToThreads(CleaningConfig.CLEANING_THREADS,dao.getInactiveAccounts(periodInDays,CleaningConfig.CLEANING_LIMIT));
    monitoringProcess();
  }
 else {
    log.warn("The configured days for database cleaning is to low. For security reasons the service will only execute with periods over 30 days!");
  }
}

private void runCleaning ( ) { log . info ( "DatabaseCleaningService: Executing database cleaning" ) ; startTime = System . currentTimeMillis ( ) ; int periodInDays = CleaningConfig . CLEANING_PERIOD ; int SECURITY_MINIMUM_PERIOD = 30 ; if ( periodInDays > SECURITY_MINIMUM_PERIOD ) { delegateToThreads ( CleaningConfig . CLEANING_THREADS , dao . getInactiveAccounts ( periodInDays , CleaningConfig . CLEANING_LIMIT ) ) ; monitoringProcess ( ) ; } else { log . warn ( "The configured days for database cleaning is to low. For security reasons the service will only execute with periods over 30 days!" ) ; } }
cleans the databse from inactive player data
