add getEntries() to CronSchedule
This commit is contained in:
parent
eb0b999f4e
commit
abcf465ada
1 changed files with 4 additions and 0 deletions
|
@ -40,6 +40,10 @@ public class CronSchedule<T> implements Closeable {
|
|||
entries.removeIf(entry -> name.equals(entry.getName()));
|
||||
}
|
||||
|
||||
public List<Entry<T>> getEntries() {
|
||||
return entries;
|
||||
}
|
||||
|
||||
public void start() {
|
||||
long initialDelay = periodInMilliseconds - (Clock.systemDefaultZone().millis() % periodInMilliseconds);
|
||||
this.future = executor.scheduleAtFixedRate(CronSchedule.this::run,
|
||||
|
|
Loading…
Reference in a new issue