This commit is contained in:
volodymyr-korzh 2024-11-27 08:24:34 -05:00 committed by GitHub
commit 570eedc2cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
type: add
issue: 6496
title: "Added a configuration option to ChannelSettings that allows message brokers to disable channel name prefix
for chosen topics."

View File

@ -29,6 +29,8 @@ public abstract class BaseChannelSettings implements IChannelSettings {
// init true to match previous behaviour
private boolean myUseJacksonMessageConverter = true;
private boolean myUsePrefixChannelName = true;
/**
* Default true. Used by IChannelNamer to decide how to qualify the channel name.
*/
@ -60,4 +62,13 @@ public abstract class BaseChannelSettings implements IChannelSettings {
public void setUseJacksonMessageConverter(boolean theUseJacksonMessageConverter) {
myUseJacksonMessageConverter = theUseJacksonMessageConverter;
}
@Override
public boolean isUsePrefixChannelName() {
return myUsePrefixChannelName;
}
public void setUsePrefixChannelName(boolean theUsePrefixChannelName) {
myUsePrefixChannelName = theUsePrefixChannelName;
}
}

View File

@ -23,4 +23,6 @@ public interface IChannelSettings {
boolean isQualifyChannelName();
boolean isUseJacksonMessageConverter();
boolean isUsePrefixChannelName();
}