-
Notifications
You must be signed in to change notification settings - Fork 925
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Respect
SubscriptionOption.WITH_POOLED_OBJECTS
in `PublisherBasedSt…
…reamMessage` (#3617) Motivation: The implementations of `StreamMessage` in Armeria are in charge of releasing the pooled objects when the subscriber subscribes without the `WITH_POOLED_OBJECTS` option. However, `PublisherBasedStreamMessage` currentyly ignores `WITH_POOLED_OBJECTS` option. We should respect that so that the subscriber does not have to deal with when it does not specify `WITH_POOLED_OBJECTS` option. Modifications: - Respect `SubscriptionOption.WITH_POOLED_OBJECTS` in `PublisherBasedStreamMessage`. - The Subscriber who does not specify `WITH_POOLED_OBJECTS` when subscribing does not have to release the pooled objects by itself anymore. Result: - Close #3608 - You can use Spring WebFlux integration with compression enabled. - You do not have to release the pooled objects when subscribing `PublisherBasedStreamMessage` without `WITH_POOLED_OBJECTS` option.
- Loading branch information
Showing
8 changed files
with
187 additions
and
17 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
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
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.