-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove differentiation between `*Async` and `*Blocking` methods of dispatch, make everything asynchronous per default * Always return one or more `CompletableFuture`, giving callers more control over what to do when the send operation completes successfully, or fails * When a `dispatch` call is supposed to block until the record has been acknowledged, callers can simply call `CompletableFuture.join()` * Move all event conversion logic to `KafkaEventConverter`, there should be none of it in `KafkaEventDispatcher` * Instead of expecting a dedicated key/project UUID parameter when dispatching `Notification`s, infer the key from the `Notification`'s subject * Dispatches via `NotificationUtil` are replaced with direct calls to `KafkaEventDispatcher` * In `BomUploadProcessingTask`, dispatch repo meta analysis and vuln analysis events asynchronously, but also wait for all of them to be successfully delivered. Signed-off-by: nscuro <[email protected]>
- Loading branch information
Showing
22 changed files
with
449 additions
and
337 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
34 changes: 0 additions & 34 deletions
34
src/main/java/org/dependencytrack/event/kafka/KafkaDefaultProducerCallback.java
This file was deleted.
Oops, something went wrong.
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.