lavocatt commented on code in PR #5220: URL: https://github.com/apache/activemq-artemis/pull/5220#discussion_r1868051444
########## artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/connect/mirror/AMQPMirrorControllerSource.java: ########## @@ -467,6 +500,28 @@ public static void validateProtocolData(ReferenceIDSupplier referenceIDSupplier, } } + /** + * Checks if the message ref should be filtered or not. + * @param ref the message to check + * @return true if the INTERNAL_RECEIVER_ID_FILTER annotation of the message is set to a different value + * than the remoteMirrorID, false otherwise. + */ + public boolean filterMessage(MessageReference ref) { Review Comment: I added another commit trying another approach at filtering by doing it at an higher level. Let me know what you think about this. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: gitbox-unsubscr...@activemq.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@activemq.apache.org For additional commands, e-mail: gitbox-h...@activemq.apache.org For further information, visit: https://activemq.apache.org/contact