Skip to content
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

QueueChannel clear() method should be expose in an interface [INT-2114] #6098

Closed
spring-operator opened this issue Sep 8, 2011 · 1 comment

Comments

@spring-operator
Copy link
Contributor

spring-operator commented Sep 8, 2011

occus3 opened INT-2114 and commented

Sometimes some messages in a QueueChannel will never be consumed because, for instance, timeout of the receiver. Next executions of receive should not consume this old-messages so it would be useful to clear the queue with the clear() QueueChannel method.

XML-configured queue channel can't be retrieve from application context as concrete class QueueChannel without risking of ClassCastException. As clear() method is only declare in concrete class and not in an interface so its not possible to call it from the class that retrieves the queue channel.


Affects: 2.0.5

Reference URL: http://forum.springsource.org/showthread.php?114264-QueueChannel-ClassCastException

Issue Links:

@spring-operator
Copy link
Contributor Author

spring-operator commented Nov 17, 2014

Artem Bilan commented

Fixed. See related issue #6799

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants