-
Notifications
You must be signed in to change notification settings - Fork 636
RabbitListenerEndpointRegistry removal of listeners support #796
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
Comments
Please explain your use case in more detail; it's not clear why you would want to dynamically remove the infrastructure for a statically defined It's not as simple as just removing the container from the registry. |
@garyrussell We have a distributed queue service application where we are using RabbitListenerEndpointRegistry to dynamically create MessageListenerContainer that exclusively consume from a queue on demand. Once there are no more messages to be process, we listen to the idle event and then shutdown the container and want to remove the reference to that container so that it can be eligible for garbage collection. |
Resolves spring-projects#796 Support removal of containers from the registry. **cherry-pick to 2.0.x**
Resolves spring-projects#796 Support removal of containers from the registry. **cherry-pick to 2.0.x**
Resolves #796 Support removal of containers from the registry. **cherry-pick to 2.0.x**
There's no way to remove a listener container from the registry for garbage collection.
The method needs to be implemented or the member field "listenerContainers" should be changed to protected so people who needs this functionality can subclass and implement it themselves.
The text was updated successfully, but these errors were encountered: