public class DbSchedulerEventSchedulerSupplier extends Object implements Supplier<DbSchedulerEventScheduler>
DbSchedulerEventScheduler
. This makes it easier to use in context without more
advanced ways of dependency injection. It can be passed to the tasks in the DbSchedulerDeadlineManager
to
create the Scheduler
before the DbSchedulerEventScheduler
is
created. After creating it should be set on this DbSchedulerEventSchedulerSupplier
.Constructor and Description |
---|
DbSchedulerEventSchedulerSupplier() |
Modifier and Type | Method and Description |
---|---|
DbSchedulerEventScheduler |
get()
Returns the set
DbSchedulerEventScheduler , or null if it hasn't been set yet. |
void |
set(DbSchedulerEventScheduler eventScheduler)
Sets the
DbSchedulerEventScheduler so the tasks created in advanced can access it. |
public DbSchedulerEventScheduler get()
DbSchedulerEventScheduler
, or null
if it hasn't been set yet.get
in interface Supplier<DbSchedulerEventScheduler>
DbSchedulerEventScheduler
public void set(@Nonnull DbSchedulerEventScheduler eventScheduler)
DbSchedulerEventScheduler
so the tasks created in advanced can access it.eventScheduler
- the DbSchedulerEventScheduler
Copyright © 2010–2024. All rights reserved.