You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2020/10/26 18:55:00 UTC

[jira] [Created] (CAMEL-15762) camel-core - Move constants on Exchange to its own class

Claus Ibsen created CAMEL-15762:
-----------------------------------

             Summary: camel-core - Move constants on Exchange to its own class
                 Key: CAMEL-15762
                 URL: https://issues.apache.org/jira/browse/CAMEL-15762
             Project: Camel
          Issue Type: Improvement
          Components: camel-core
            Reporter: Claus Ibsen


We have many constants on the Exchange interface. But its discouraged to have that on interfaces. 

If we have a constant class instead to keep those on that would be better. But the Exchange have had these for a long time, os its maybe a Camel 4 change.

This also helps reduce the object size of Exchange instances in memory as they dont have reference to those 100+ constants. Today they take up space, and an empty exchange is around 1000-1500 bytes.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)