forked from apache/activemq
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AMQ-8354] Add helper methods needed for replica plugin.
* added a "queuePurged" method to notify about a queue being purged, with appropriate stub implementations for EmptyBroker and ErrorBroker. This is needed for queue purge replication. * added ConnectionContext#setUserName to be able to differentiate replication context (the context we use to interact with the broker) from every other to prevent replication of replicated events. * added a new public "getMatchingMessages" method to be able to get messages by selector when the consumer is full. Used by the replica plugin for message compaction. * added "getDispatched" method to fetch the list of messages we are acknowledging. This is used by the replica plugin to correctly replicate ACKs * Bugfix in processDispatchNotification, getMatchingMessage and processMessageDispatchNotification to be able to replicate acks correctly. These code paths have not been used since pure master-slave feature was deleted, but is needed by the replica broker plugin.
- Loading branch information
Showing
7 changed files
with
153 additions
and
43 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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