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:
-
EventTrigger
EventBus
-
Method Summary
Modifier and TypeMethodDescriptionstatic <IN,
OUT, V> EventSchedulerBuilder<IN, OUT, V> builder()
void
cancel()
Cancel schedulervoid
start()
Start and run thescheduler
inVertx worker thread pool
.void
start
(io.vertx.core.WorkerExecutor workerExecutor) Start and run thescheduler
in a dedicated thread pool that is provided by a customized worker executor@NotNull EventTrigger<T>
trigger()
@NotNull io.vertx.core.Vertx
vertx()
Vertx
-
Method Details
-
builder
-
vertx
@NotNull @NotNull io.vertx.core.Vertx vertx()Description copied from interface:HasVertx
Vertx -
trigger
-
start
void start()Description copied from interface:Scheduler
Start and run thescheduler
inVertx worker thread pool
. -
start
void start(io.vertx.core.WorkerExecutor workerExecutor) Description copied from interface:Scheduler
Start and run thescheduler
in a dedicated thread pool that is provided by a customized worker executor -
cancel
void cancel()Description copied from interface:Scheduler
Cancel scheduler
-