File History: src/main/java/com/paymentlink/reservation/ReservationCleanupScheduler.java

← View file content

File Content at Commit 9c24ca4

1 package com.paymentlink.reservation;
2
3 import org.slf4j.Logger;
4 import org.slf4j.LoggerFactory;
5 import org.springframework.scheduling.annotation.Scheduled;
6 import org.springframework.stereotype.Component;
7
8 @Component
9 public class ReservationCleanupScheduler {
10
11 private static final Logger logger = LoggerFactory.getLogger(ReservationCleanupScheduler.class);
12
13 private final ReservationService reservationService;
14
15 public ReservationCleanupScheduler(ReservationService reservationService) {
16 this.reservationService = reservationService;
17 }
18
19 /**
20 * Clean up expired reservations every minute (60000ms)
21 */
22 @Scheduled(fixedRate = 60000)
23 public void cleanupExpiredReservations() {
24 logger.debug("Running reservation cleanup task");
25 reservationService.cleanup();
26 }
27 }
28
29

Commits

Commit Author Date Message File SHA Actions
f0438c2 <f69e50@finnacloud.com> 1766443042 +0300 12/22/2025, 10:37:22 PM increment once more dd91957 View
188fc92 <f69e50@finnacloud.com> 1766442998 +0300 12/22/2025, 10:36:38 PM increment dd91957 View
4617f76 <f69e50@finnacloud.com> 1766442953 +0300 12/22/2025, 10:35:53 PM rename branch from main to master oops dd91957 View
e6d1548 <f69e50@finnacloud.com> 1766442769 +0300 12/22/2025, 10:32:49 PM add initial test workflow file dd91957 View
9c24ca4 <f69e50@finnacloud.com> 1766442705 +0300 12/22/2025, 10:31:45 PM add CI configuration and test script for Jenkins build dd91957 Hide
690c1f6 <f69e50@finnacloud.com> 1766368110 +0300 12/22/2025, 1:48:30 AM initialize backend structure with controllers, DTOs, and configuration files dd91957 View