-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add support for SubscriptionListener
using Pub/Sub and introduce ReactiveRedisMessageListenerContainer.receiveLater(…)
#2052
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Conversation
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
Overrides.
christophstrobl
pushed a commit
that referenced
this pull request
May 25, 2021
Original Pull Request: #2052
christophstrobl
pushed a commit
that referenced
this pull request
May 25, 2021
Add missing (at)Override annotations. Original Pull Request: #2052
christophstrobl
pushed a commit
that referenced
this pull request
May 25, 2021
…erContainer. Original Pull Request: #2052
christophstrobl
pushed a commit
that referenced
this pull request
May 25, 2021
Replace MonoProcessor with Sinks. Original Pull Request: #2052
christophstrobl
pushed a commit
that referenced
this pull request
May 25, 2021
…bscriptions. Original Pull Request: #2052
christophstrobl
pushed a commit
that referenced
this pull request
May 25, 2021
Original Pull Request: #2052
christophstrobl
pushed a commit
that referenced
this pull request
May 25, 2021
Original Pull Request: #2052
christophstrobl
added a commit
that referenced
this pull request
May 25, 2021
Add explicit cast update documentation and rename SubcriptionListener instance to NO_OP_... Fix Java 16 compile error. Original Pull Request: #2052
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Support for
SubscriptionListener
when usingMessageListener
for subscription confirmation callbacks.ReactiveRedisMessageListenerContainer
andReactiveRedisOperations
providereceiveLater(…)
andlistenToLater(…)
methods to await until Redis acknowledges the subscription.A
MessageListener
can additionally implementSubscriptionListener
to receive notifications upon subscription/unsubscribe confirmation. Listening to subscription notifications can be useful when synchronizing invocations.To await and ensure proper subscription, you can use the
receiveLater
method that returns aMono<Flux<ChannelMessage>>
.The resulting
Mono
completes with an inner publisher as a result of completing the subscription to the given topics. By interceptingonNext
signals, you can synchronize server-side subscriptions.Partially addresses #1622 as this is the required infrastructure to rewrite
RedisMessageListenerContainer.start()
andaddMessageListener(…)
into a blocking form.Closes #2054