Created
July 27, 2018 15:42
-
-
Save deque-blog/2f0296be6e2f1f26b8120495bc560a34 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
private void pollSweeperTable(Session session) { | |
List<Message> unsentMessages = messageRepository.fetchUnsentMessages(); | |
for (Message message : unsentMessages) | |
sendMessage(session, message); | |
messageRepository.markSent(unsentMessages); // One DB transaction | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment