mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-02-16 09:55:09 +00:00
Add setting to make broker not use JacksonMessageConverter (#5611)
* Add setting to make broker not use JacksonMessageConverter * Add changelog * Implement suggestions --------- Co-authored-by: juan.marchionatto <juan.marchionatto@smilecdr.com>
This commit is contained in:
parent
949c970cfd
commit
51a6ddad3d
@ -0,0 +1,5 @@
|
||||
---
|
||||
type: add
|
||||
issue: 5610
|
||||
title: "Before, message broker always used `JacksonMessageConverter`. Added a configuration option that allows
|
||||
to disable it so other converters can be configured depending on the message type."
|
@ -26,6 +26,9 @@ public abstract class BaseChannelSettings implements IChannelSettings {
|
||||
|
||||
private ChannelRetryConfiguration myRetryConfigurationParameters;
|
||||
|
||||
// init true to match previous behaviour
|
||||
private boolean myUseJacksonMessageConverter = true;
|
||||
|
||||
/**
|
||||
* Default true. Used by IChannelNamer to decide how to qualify the channel name.
|
||||
*/
|
||||
@ -48,4 +51,13 @@ public abstract class BaseChannelSettings implements IChannelSettings {
|
||||
public ChannelRetryConfiguration getRetryConfigurationParameters() {
|
||||
return myRetryConfigurationParameters;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUseJacksonMessageConverter() {
|
||||
return myUseJacksonMessageConverter;
|
||||
}
|
||||
|
||||
public void setUseJacksonMessageConverter(boolean theUseJacksonMessageConverter) {
|
||||
myUseJacksonMessageConverter = theUseJacksonMessageConverter;
|
||||
}
|
||||
}
|
||||
|
@ -21,4 +21,6 @@ package ca.uhn.fhir.jpa.subscription.channel.api;
|
||||
|
||||
public interface IChannelSettings {
|
||||
boolean isQualifyChannelName();
|
||||
|
||||
boolean isUseJacksonMessageConverter();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user