ExpirePointTask { @Scheduled(fixedRate = 60 * 60 * 1000, initialDelay = 30 * 1000) public void expirePointTask() { log.debug(">>"); List<String> tables = this.pointTableDs.listTable(); tables.forEach(t -> { String type = t.replaceFirst(HyenaConstants.PREFIX_POINT_TABLE_NAME, ""); this.expirePointByType(type); }); log.debug("<<"); }  @Scheduled(fixedRate = 60 * 60 * 1000, initialDelay = 30 * 1000) // every 1 hour void expirePointTask();  }
@Test public void test_expirePointTask() { this.expirePointTask.expirePointTask(); }