Package io.github.zero88.schedulerx
Interface EventScheduler<T>
- Type Parameters:
T- Type of event message
- All Superinterfaces:
HasVertx,Scheduler<EventTrigger<T>>
An event-based scheduler that triggers to run a job when receive an event from specific
event-bus address.- Since:
- 2.0.0
- See Also:
-
EventTriggerEventBus
-
Method Summary
Modifier and TypeMethodDescriptionstatic <IN,OUT, V> EventSchedulerBuilder<IN, OUT, V> builder()voidcancel()Cancel schedulervoidstart()Start and run theschedulerinVertx worker thread pool.voidstart(io.vertx.core.WorkerExecutor workerExecutor) Start and run theschedulerin a dedicated thread pool that is provided by a customized worker executor@NotNull EventTrigger<T>trigger()@NotNull io.vertx.core.Vertxvertx()Vertx
-
Method Details
-
builder
-
vertx
@NotNull @NotNull io.vertx.core.Vertx vertx()Description copied from interface:HasVertxVertx -
trigger
-
start
void start()Description copied from interface:SchedulerStart and run theschedulerinVertx worker thread pool. -
start
void start(io.vertx.core.WorkerExecutor workerExecutor) Description copied from interface:SchedulerStart and run theschedulerin a dedicated thread pool that is provided by a customized worker executor -
cancel
void cancel()Description copied from interface:SchedulerCancel scheduler
-