Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-11155

camel-infinispan - producer command and operation discrepancies

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.20.0
    • Component/s: camel-infinispan
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      As today in camel-infinispan you can configure which operation the producer should perform in two ways:

      • by setting the CamelInfinispanOperation header
      • by setting the command option in the endpoint

      The first thing to notice is that they use a different naming but for consistency we should use either operation or command but not both. The second thing is that if you set the operation on header you should use i.e. CamelInfinispanOperationPut but the same "operation" set to the command uri option is PUT so again there is a discrepancy in the naming used.

      As solution we should use:

      • CamelInfinispanOperation for the header
      • operation as endpoint option
      • the operation should be in the simple form like PUT, GET, etc as it is clear from the context that we are targeting Infinispan.

        Attachments

          Activity

            People

            • Assignee:
              lb Luca Burgazzoli
              Reporter:
              lb Luca Burgazzoli
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: