Home > Back-end > Multithreaded timing task how to implement
Multithreaded timing task how to implement
Time:09-24
Seat reservation recently doing, users need to temporarily leave, must leave within 1 hour after come back, the background is springboot how to implement such business scene,
CodePudding user response:
Task scheduling regularly: QUARTZ framework include: 1. The Scheduler: the Scheduler, control all the scheduling 2. The Trigger, the Trigger condition 3. The JobDetail: to deal with the JOB of 4. Job: perform logical
CodePudding user response:
Put a eye, have the answer tell me
CodePudding user response:
1. The user clicks the left a delay task, new users never come back in 1 hour, release the seat
Or
2. The user clicks the left a delay queue messages sent, users never come back in 1 hour, natural release seats, user is back in an hour, undo queue messages or business processing