Ether Framework
Unified API docs for Ether modules
Loading...
Searching...
No Matches
SchedulerPort.java
Go to the documentation of this file.
1/*-
2 * #%L
3 * ether-cron
4 * %%
5 * Copyright (C) 2026 Raúl Eduardo González Argote
6 * #L%
7 */
8
9package dev.rafex.ether.cron;
10
11import java.time.Duration;
12import java.time.LocalTime;
13
14public interface SchedulerPort extends AutoCloseable {
15
16 ScheduledTask everySeconds(String name, long seconds, EtherJob job);
17
18 ScheduledTask everyMinutes(String name, long minutes, EtherJob job);
19
20 ScheduledTask everyHours(String name, long hours, EtherJob job);
21
22 ScheduledTask dailyAt(String name, LocalTime time, EtherJob job);
23
24 boolean awaitTermination(Duration timeout) throws InterruptedException;
25
27
28 @Override
29 void close();
30}
boolean awaitTermination(Duration timeout)
ScheduledTask everyHours(String name, long hours, EtherJob job)
ScheduledTask everyMinutes(String name, long minutes, EtherJob job)
ScheduledTask dailyAt(String name, LocalTime time, EtherJob job)
ScheduledTask everySeconds(String name, long seconds, EtherJob job)