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
public interface QueueConsumerModule<ID> { | |
List<ID> findItemIdsWhereQueueingNextAttemptTimeIsBefore(int partition, LocalDateTime time, int limit); | |
// ... | |
} |
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
public QueueConsumer( | |
QueueConsumerModule<?> queueConsumerModule, | |
RetryPolicy retryPolicy, | |
PlatformTransactionManager transactionManager, | |
int polledItemsLimit, | |
long pollingPeriodInSecs, | |
int partitionCount | |
) { | |
// ... | |
this.scheduledExecutorService = Executors.newScheduledThreadPool(partitionCount); |
OlderNewer