Remove mutator
This commit is contained in:
parent
aa37884b2e
commit
c572575412
|
@ -42,6 +42,8 @@ public class MdmQueueConsumerLoader {
|
||||||
private MdmMessageHandler myMdmMessageHandler;
|
private MdmMessageHandler myMdmMessageHandler;
|
||||||
@Autowired
|
@Autowired
|
||||||
private IChannelFactory myChannelFactory;
|
private IChannelFactory myChannelFactory;
|
||||||
|
@Autowired
|
||||||
|
private IMdmSettings myMdmSettings;
|
||||||
|
|
||||||
protected IChannelReceiver myMdmChannel;
|
protected IChannelReceiver myMdmChannel;
|
||||||
|
|
||||||
|
@ -50,8 +52,7 @@ public class MdmQueueConsumerLoader {
|
||||||
if (myMdmChannel == null) {
|
if (myMdmChannel == null) {
|
||||||
ChannelConsumerSettings config = new ChannelConsumerSettings();
|
ChannelConsumerSettings config = new ChannelConsumerSettings();
|
||||||
|
|
||||||
//All MDM must be done single-threaded
|
config.setConcurrentConsumers(myMdmSettings.getConcurrentConsumers());
|
||||||
config.setConcurrentConsumers(1);
|
|
||||||
|
|
||||||
myMdmChannel = myChannelFactory.getOrCreateReceiver(IMdmSettings.EMPI_CHANNEL_NAME, ResourceModifiedJsonMessage.class, config);
|
myMdmChannel = myChannelFactory.getOrCreateReceiver(IMdmSettings.EMPI_CHANNEL_NAME, ResourceModifiedJsonMessage.class, config);
|
||||||
if (myMdmChannel == null) {
|
if (myMdmChannel == null) {
|
||||||
|
|
|
@ -26,7 +26,6 @@ import java.util.stream.Collectors;
|
||||||
|
|
||||||
public interface IMdmSettings {
|
public interface IMdmSettings {
|
||||||
|
|
||||||
String MDM_CHANNEL_NAME = "mdm";
|
|
||||||
String EMPI_CHANNEL_NAME = "empi";
|
String EMPI_CHANNEL_NAME = "empi";
|
||||||
|
|
||||||
// Parallel processing of MDM can result in missed matches. Best to single-thread.
|
// Parallel processing of MDM can result in missed matches. Best to single-thread.
|
||||||
|
|
|
@ -67,11 +67,6 @@ public class MdmSettings implements IMdmSettings {
|
||||||
return myConcurrentConsumers;
|
return myConcurrentConsumers;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MdmSettings setConcurrentConsumers(int theConcurrentConsumers) {
|
|
||||||
myConcurrentConsumers = theConcurrentConsumers;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getScriptText() {
|
public String getScriptText() {
|
||||||
return myScriptText;
|
return myScriptText;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue