Class MaxTimesRepetition
- java.lang.Object
-
- de.unistuttgart.isw.sfsc.commonjava.util.MaxTimesRepetition
-
- All Implemented Interfaces:
NotThrowingAutoCloseable,AutoCloseable
public class MaxTimesRepetition extends Object implements NotThrowingAutoCloseable
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static MaxTimesRepetitionscheduleMaxTimes(ScheduledExecutorService scheduledExecutorService, Runnable task, int rateMs, int maxTries)
-
-
-
Method Detail
-
scheduleMaxTimes
public static MaxTimesRepetition scheduleMaxTimes(ScheduledExecutorService scheduledExecutorService, Runnable task, int rateMs, int maxTries)
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceNotThrowingAutoCloseable
-
-