This closes #858
This commit is contained in:
commit
e5df63c241
|
@ -1024,6 +1024,16 @@ public interface ActiveMQServerLogger extends BasicLogger {
|
||||||
@Message(id = 222164, value = "Error when trying to start replication {0}", format = Message.Format.MESSAGE_FORMAT)
|
@Message(id = 222164, value = "Error when trying to start replication {0}", format = Message.Format.MESSAGE_FORMAT)
|
||||||
void errorStartingReplication(BackupReplicationStartFailedMessage.BackupRegistrationProblem problem);
|
void errorStartingReplication(BackupReplicationStartFailedMessage.BackupRegistrationProblem problem);
|
||||||
|
|
||||||
|
@LogMessage(level = Logger.Level.WARN)
|
||||||
|
@Message(id = 222165, value = "No Dead Letter Address configured for queue {0} in AddressSettings",
|
||||||
|
format = Message.Format.MESSAGE_FORMAT)
|
||||||
|
void AddressSettingsNoDLA(SimpleString name);
|
||||||
|
|
||||||
|
@LogMessage(level = Logger.Level.WARN)
|
||||||
|
@Message(id = 222166, value = "No Expiry Address configured for queue {0} in AddressSettings",
|
||||||
|
format = Message.Format.MESSAGE_FORMAT)
|
||||||
|
void AddressSettingsNoExpiryAddress(SimpleString name);
|
||||||
|
|
||||||
@LogMessage(level = Logger.Level.WARN)
|
@LogMessage(level = Logger.Level.WARN)
|
||||||
@Message(id = 222167, value = "Group Binding not available so deleting {0} groups from {1}, groups will be bound to another node",
|
@Message(id = 222167, value = "Group Binding not available so deleting {0} groups from {1}, groups will be bound to another node",
|
||||||
format = Message.Format.MESSAGE_FORMAT)
|
format = Message.Format.MESSAGE_FORMAT)
|
||||||
|
|
|
@ -2989,10 +2989,20 @@ public class QueueImpl implements Queue {
|
||||||
public void onChange() {
|
public void onChange() {
|
||||||
AddressSettings settings = addressSettingsRepository.getMatch(address.toString());
|
AddressSettings settings = addressSettingsRepository.getMatch(address.toString());
|
||||||
configureExpiry(settings);
|
configureExpiry(settings);
|
||||||
|
checkDeadLetterAddressAndExpiryAddress(settings);
|
||||||
configureSlowConsumerReaper(settings);
|
configureSlowConsumerReaper(settings);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void checkDeadLetterAddressAndExpiryAddress(final AddressSettings settings) {
|
||||||
|
if (settings.getDeadLetterAddress() == null) {
|
||||||
|
ActiveMQServerLogger.LOGGER.AddressSettingsNoDLA(name);
|
||||||
|
}
|
||||||
|
if (settings.getExpiryAddress() == null) {
|
||||||
|
ActiveMQServerLogger.LOGGER.AddressSettingsNoExpiryAddress(name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private final class SlowConsumerReaperRunnable implements Runnable {
|
private final class SlowConsumerReaperRunnable implements Runnable {
|
||||||
|
|
||||||
private final SlowConsumerPolicy policy;
|
private final SlowConsumerPolicy policy;
|
||||||
|
|
Loading…
Reference in New Issue