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

Distribuited map, retrieve hashmap keys

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.18.0
    • Component/s: camel-hazelcast
    • Labels:
    • Patch Info:
      Patch Available
    • Estimated Complexity:
      Novice
    • Flags:
      Patch

      Description

      Hello, i propose you to introduce this new feature to hazelcast component

      Hazelcast Distributed Map Producer support more operations but "keySet()" is not implemented yet!

      To resolve this improvement insert follow code into "HazelcastMapProducer.java" file

      1. Add constant "GET_KEYS_OPERATION"

      2. Into process method add

         case HazelcastConstants.GET_KEYS_OPERATION:
                  this.getKeys(exchange);
                  break;
      

      3. add private method

           /**
           * get keys set of objects and give it back
           */
          private void getKeys(Exchange exchange) {
              exchange.getOut().setBody(this.cache.keySet());
          }
      

      King regards

        Attachments

        1. CAMEL-10068.txt
          4 kB
          Fabrizio Spataro

          Activity

            People

            • Assignee:
              acosentino Andrea Cosentino
              Reporter:
              fabryprog Fabrizio Spataro
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: