Posted In: Java Core

How to run a task periodically in Java – ScheduledExecutorService

Example of using ScheduledExecutorService in a standalone program This example will check sms each 10 seconds. Program will close after one hour (sendSmsHandle.cancel(true))

Read More

Tags:

by , on March 30th, 2017

Posted In: Spring, Spring Boot

How to run a task periodically in Spring Boot

This class will schedule to run JOB after each hour Another variant with initial delay Variant with CRON like syntax. This JOB/TASK will only run week days

Read More

Tags:

by , on March 29th, 2017

  • Categories