@Scheduled(cron = "0 0 9-17 * * MON-FRI") public String cron() { return "oops"; } }
@Scheduled(fixedRate = 3000, initialDelay = 1000) public void fixedRate() { } }
@Scheduled(cron = "${schedules.businessHours}") public void x() { } }
@Scheduled(fixedDelay = 5000) public void fixedDelay() { } }
@Scheduled(fixedRateString = "${fixedRate}", initialDelayString = "${initialDelay}") public void fixedRate() { } }
@Scheduled(cron = "0 0 0-4,6-23 * * ?", zone = "FOO") public void cron() throws IOException { throw new IOException("no no no"); } }
@Scheduled(cron = "0 0 0-4,6-23 * * ?", zone = "GMT+10") protected void cron() throws IOException { throw new IOException("no no no"); } }
@Scheduled(cron = "*/7 * * * * ?") public void cron() throws IOException { throw new IOException("no no no"); } }
@Scheduled(cron = "*/7 * * * * ?") private void cron() throws IOException { throw new IOException("no no no"); } }
@Transactional @Scheduled(fixedDelay = 5) public void scheduled() { this.count.incrementAndGet(); }
@Override @Transactional @Scheduled(fixedDelay = 5) public void scheduled() { this.count.incrementAndGet(); }
@Scheduled(fixedRate = 10) public void task() { threadName = Thread.currentThread().getName(); counter().incrementAndGet(); }
@Scheduled(fixedRate = 10) public void task() { counter().incrementAndGet(); } }
@Scheduled(fixedRate = 10) public void task() { threadName = Thread.currentThread().getName(); counter().incrementAndGet(); } }
@Scheduled(initialDelay = 1000, fixedRate = 100) public void task() { counter().incrementAndGet(); } }
@Scheduled(fixedRate = 10) public void task() { worker().executedByThread = Thread.currentThread().getName(); }