Skip to content

Commit

Permalink
ARTEMIS-1829 Remove deprecated plugin's messageExpired implementations
Browse files Browse the repository at this point in the history
NotificationActiveMQServerPlugin and LoggingActiveMQServerPlugin are
implementing the deprecated version of
ActiveMQServerPlugin::messageExpired that is not called by the
new version of the method or any other part of the code

This fixing test org.apache.activemq.artemis.tests.integration.management.NotificationTest#testMessageExpired
  • Loading branch information
franz1981 authored and clebertsuconic committed Apr 26, 2018
1 parent e7f2dd3 commit 5b6a8d2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
Expand Up @@ -566,7 +566,7 @@ default void messageExpired(MessageReference message, SimpleString messageExpiry
* @throws ActiveMQException
*/
default void messageExpired(MessageReference message, SimpleString messageExpiryAddress, ServerConsumer consumer) throws ActiveMQException {

messageExpired(message, messageExpiryAddress);
}

/**
Expand Down
Expand Up @@ -595,15 +595,10 @@ public void afterDeliver(ServerConsumer consumer, MessageReference reference) th
}
}

/**
* A message has been expired
*
* @param message The expired message
* @param messageExpiryAddress The message expiry address if exists
* @throws ActiveMQException
*/
@Override
public void messageExpired(MessageReference message, SimpleString messageExpiryAddress) throws ActiveMQException {
public void messageExpired(MessageReference message,
SimpleString messageExpiryAddress,
ServerConsumer consumer) {
if (logAll || logInternalEvents) {
LoggingActiveMQServerPluginLogger.LOGGER.messageExpired(message, messageExpiryAddress);
}
Expand Down
Expand Up @@ -139,7 +139,9 @@ public void afterDeliver(ServerConsumer consumer, MessageReference reference) th
}

@Override
public void messageExpired(MessageReference message, SimpleString messageExpiryAddress) throws ActiveMQException {
public void messageExpired(MessageReference message,
SimpleString messageExpiryAddress,
ServerConsumer consumer) {
final ManagementService managementService = getManagementService();

if (managementService != null && sendExpiredNotifications) {
Expand Down

0 comments on commit 5b6a8d2

Please sign in to comment.