This commit is contained in:
Clebert Suconic 2018-04-26 09:38:58 -04:00
commit 27c0017dd9
3 changed files with 7 additions and 10 deletions

View File

@ -566,7 +566,7 @@ public interface ActiveMQServerPlugin {
* @throws ActiveMQException * @throws ActiveMQException
*/ */
default void messageExpired(MessageReference message, SimpleString messageExpiryAddress, ServerConsumer consumer) throws ActiveMQException { default void messageExpired(MessageReference message, SimpleString messageExpiryAddress, ServerConsumer consumer) throws ActiveMQException {
messageExpired(message, messageExpiryAddress);
} }
/** /**

View File

@ -595,15 +595,10 @@ public class LoggingActiveMQServerPlugin implements ActiveMQServerPlugin, Serial
} }
} }
/**
* A message has been expired
*
* @param message The expired message
* @param messageExpiryAddress The message expiry address if exists
* @throws ActiveMQException
*/
@Override @Override
public void messageExpired(MessageReference message, SimpleString messageExpiryAddress) throws ActiveMQException { public void messageExpired(MessageReference message,
SimpleString messageExpiryAddress,
ServerConsumer consumer) {
if (logAll || logInternalEvents) { if (logAll || logInternalEvents) {
LoggingActiveMQServerPluginLogger.LOGGER.messageExpired(message, messageExpiryAddress); LoggingActiveMQServerPluginLogger.LOGGER.messageExpired(message, messageExpiryAddress);
} }

View File

@ -139,7 +139,9 @@ public class NotificationActiveMQServerPlugin implements ActiveMQServerPlugin {
} }
@Override @Override
public void messageExpired(MessageReference message, SimpleString messageExpiryAddress) throws ActiveMQException { public void messageExpired(MessageReference message,
SimpleString messageExpiryAddress,
ServerConsumer consumer) {
final ManagementService managementService = getManagementService(); final ManagementService managementService = getManagementService();
if (managementService != null && sendExpiredNotifications) { if (managementService != null && sendExpiredNotifications) {