1 year ago

#317800

test-img

Hugo Vinhal

Quarkus job scheduler

So I am using ManagedScheduledExecutorService in a Java EE project that I am migrating to Quarkus, like so:

@Resource
private ManagedScheduledExecutorService scheduler;

The only thing I need from this dependency is to be able to schedule a command, by invoking the shedule function:

this.scheduler.schedule(this::refreshToken, TENTATIVE_LOGIN_IN_SECONDS, TimeUnit.SECONDS);

Is there any way I can achieve this in Quarkus?

java

jobs

quarkus

java-ee-6

schedule

0 Answers

Your Answer

Accepted video resources