| | |
| | | */ |
| | | @Scheduled(cron = "0/5 * * * * ?") |
| | | public void taskOrder() { |
| | | System.out.println("5秒执行一次"); |
| | | // System.out.println("5秒执行一次"); |
| | | Set<String> quoteMatchName = redisService.getQuoteMatchName(CacheConstants.QUEUE_POINT_ID); |
| | | for (String name : quoteMatchName) { |
| | | String firstElement = redisService.getFirstElement(name); |
| | |
| | | */ |
| | | @Scheduled(cron = "0/5 * * * * ?") |
| | | public void taskOrder_targeted() { |
| | | System.out.println("5秒执行一次"); |
| | | // System.out.println("5秒执行一次"); |
| | | Set<String> quoteMatchName = redisService.getQuoteMatchName(CacheConstants.QUEUE_POINT_ID); |
| | | for (String name : quoteMatchName) { |
| | | String firstElement = redisService.getFirstElement(name); |