Package io.zeko.restapi.core.cron
Class CronRunner
-
- All Implemented Interfaces:
public class CronRunner
-
-
Field Summary
Fields Modifier and Type Field Description private CronParsercronParserprivate final Vertxvertxprivate final Loggerlogger
-
Constructor Summary
Constructors Constructor Description CronRunner(Vertx vertx, Logger logger)
-
Method Summary
Modifier and Type Method Description final CronParsergetCronParser()final UnitsetCronParser(CronParser cronParser)final VertxgetVertx()final LoggergetLogger()final CronRunnerinit(CronType cronType)final Function0<Long>schedule(String expression)final Unitrun(String schedule, Function0<Object> block)final Unitrun(Function0<Long> scheduleBlock, Function0<Object> block)final UnitrunSuspend(String schedule, SuspendFunction0<Object> block)final UnitrunSuspend(Function0<Long> scheduleBlock, SuspendFunction0<Object> block)-
-
Method Detail
-
getCronParser
final CronParser getCronParser()
-
setCronParser
final Unit setCronParser(CronParser cronParser)
-
getVertx
final Vertx getVertx()
-
getLogger
final Logger getLogger()
-
init
final CronRunner init(CronType cronType)
-
runSuspend
final Unit runSuspend(String schedule, SuspendFunction0<Object> block)
-
runSuspend
final Unit runSuspend(Function0<Long> scheduleBlock, SuspendFunction0<Object> block)
-
-
-
-