Package com.vaadin.quarkus.graal
Class DelayedSchedulerExecutorsFactory
java.lang.Object
com.vaadin.quarkus.graal.DelayedSchedulerExecutorsFactory
A replacement for
ExecutorsFactory.getScheduler(AtmosphereConfig)
that returns a ScheduledExecutorService that postpones initialization
until it is effectively used.
This is needed to prevent thread to be started during STATIC_INIT phase of native build. The
ExecutorsFactory.getScheduler(AtmosphereConfig)
method is renamed by bytecode transformation, and all calls to redirected to
getScheduler(AtmosphereConfig). The
newScheduler(AtmosphereConfig) method is also rewritten to call the
renamed ExecutorsFactory.getScheduler(AtmosphereConfig) method.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ScheduledExecutorServicegetScheduler(org.atmosphere.cpr.AtmosphereConfig config)
-
Constructor Details
-
DelayedSchedulerExecutorsFactory
public DelayedSchedulerExecutorsFactory()
-
-
Method Details
-
getScheduler
-