Java Scheduler
To create a scheduler, we can use Executors.newScheduledThreadPool(num_thread)
ScheduledExecutorService scheduledExecutorService = Executors.newScheduledThreadPool(3);
scheduledExecutorService.scheduleAtFixedRate(() -> System.out.println("scheduling"), 0 ,1, TimeUnit.SECONDS);
For springboot, consider Spring Scheduler