Closed namila007 closed 10 months ago
for this i created a new escape class based on DefaultEscaping with LinkedHashmap, when there is a put ; i simply synchronize the map and double check the valuse (like double checked singleton) before adding the escape chars to the map
Hi, I'm using Springboot Camel Hl7 for my application (with netty listener). When I did Jprofiler, I found a blocking method call in
ca.uhn.hl7v2.parser.DefaultEscaping
. As in the image below, the most blocked method is Synchronized LinkedHashmap ;For now, I have introduced a new encoder with
ConcurrentMap
and attached it with every message as follows;Is there any way to define a new
DefaultHapiContext
within the app and use it as a default context? or what is the right way to implement non-blocking encoder;