Class RegularScheduler
- java.lang.Object
-
- org.processmining.specpp.supervision.RegularScheduler
-
- All Implemented Interfaces:
Joinable,StartStoppable,Stoppable
public class RegularScheduler extends java.lang.Object implements StartStoppable, Joinable
-
-
Field Summary
Fields Modifier and Type Field Description static longMAX_WAIT_ON_JOINprotected java.util.List<java.util.concurrent.ScheduledFuture<?>>schedulersListprotected java.util.List<Tuple2<java.lang.Runnable,java.time.Duration>>tasksToSchedule
-
Constructor Summary
Constructors Modifier Constructor Description protectedRegularScheduler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RegularSchedulerinst()voidjoin()RegularSchedulerschedule(java.lang.Runnable r, java.time.Duration timeInterval)voidstart()voidstop()
-
-
-
Field Detail
-
MAX_WAIT_ON_JOIN
public static final long MAX_WAIT_ON_JOIN
- See Also:
- Constant Field Values
-
tasksToSchedule
protected final java.util.List<Tuple2<java.lang.Runnable,java.time.Duration>> tasksToSchedule
-
schedulersList
protected final java.util.List<java.util.concurrent.ScheduledFuture<?>> schedulersList
-
-
Method Detail
-
inst
public static RegularScheduler inst()
-
schedule
public RegularScheduler schedule(java.lang.Runnable r, java.time.Duration timeInterval)
-
start
public void start()
- Specified by:
startin interfaceStartStoppable
-
-