Skip to content

Instantly share code, notes, and snippets.

@vmarcinko
Created May 22, 2019 06:44
Show Gist options
  • Save vmarcinko/8d72301b2baf000a025a9ea29daf1f78 to your computer and use it in GitHub Desktop.
Save vmarcinko/8d72301b2baf000a025a9ea29daf1f78 to your computer and use it in GitHub Desktop.
public interface QueueConsumerModule<ID> {
List<ID> findItemIdsWhereQueueingNextAttemptTimeIsBefore(LocalDateTime time, int limit);
Optional<QueueingState> getQueueingStateForItem(ID itemId);
Optional<QueueingState> processItem(ID itemId);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment