Scheduling Task in Spring/Java

前端 未结 5 1583
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-05 13:07

I am spawning a thread which will keep pulling the chunk of records from database and putting them into the queue. This thread will be started on the server load. I want thi

5条回答
  •  Happy的楠姐
    2021-01-05 13:54

    Spring has out-ot-the-box support for scheduling tasks. Here are for the docs for the latest 3.2.x version of spring but check the docs for the version you are using. Looks like it uses Quartz under the hood for scheduling tasks.

提交回复
热议问题