-
Notifications
You must be signed in to change notification settings - Fork 784
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release and onAvailable implementation
Instead of the DeadLetterEvaluator, the DeadLetterQueue should be able to invoke callbacks/runnables once entries are ready to be taken. Or, when they are released. To that end, callbacks should be registered with the DeadLetterQueue. These callbacks are scheduled for invocation whenever an entry matching the provided group expires through the expireThreshold. These callbacks are also invoked upon invocation of release. Release should be invokable with a predicate, filtering out entries that should be released. Releasing means that the expireAt time is set to now, thus making them available for "the taking." The InMemoryDeadLetterQueue implementation should have a configurable ScheduledExecutorService, and allow for updating the expireAt time on release invocation. #2021
- Loading branch information
Showing
4 changed files
with
196 additions
and
61 deletions.
There are no files selected for viewing
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
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
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
Oops, something went wrong.