This closes #2044
This commit is contained in:
commit
27c0017dd9
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue