Created
March 28, 2024 09:41
-
-
Save serdarmumcu/038f5d0da2bba474a34b5b69088d7283 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Service | |
public class EventProcessingService { | |
@Autowired | |
private OutboxRepository outboxRepository; | |
@Transactional | |
public void deleteProcessedEvents(List<Long> eventIds) { | |
if (!eventIds.isEmpty()) { | |
outboxRepository.deleteAllByIdIn(eventIds); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment