Github user clebertsuconic commented on a diff in the pull request:
https://github.com/apache/activemq-artemis/pull/672#discussion_r72517417
--- Diff:
artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/QueueImpl.java
---
@@ -2983,6 +2988,18 @@ else if (consumerRate < threshold) {
if (connection != null) {
ActiveMQServerLogger.LOGGER.slowConsumerDetected(serverConsumer.getSessionID(),
serverConsumer.getID(), getName().toString(), connection.getRemoteAddress(),
threshold, consumerRate);
if (policy.equals(SlowConsumerPolicy.KILL)) {
+ if (connection instanceof CoreRemotingConnection) {
--- End diff --
This should be abstract through the ProtocolManagers somehow. You can't do
a protocol specific implementation on QueueImpl.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---