Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-4504

SimpleMapCache/PersistentMapCache: Add removeAndGet and removeByPatternAndGet

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4.0
    • 1.5.0
    • None
    • None

    Description

      Typical map implementations return the value that was removed when performing a remove. Because you couldn't update the existing remove methods without it being a breaking change I suggest adding new versions of the remove and removeByPattern methods that return the removed value(s).

      These changes should also be applied up the chain to any class that makes use of these classes such as the MapCacheServer and AtomicDistributedMapCacheClient.

      Attachments

        Issue Links

          Activity

            People

              mosermw Michael W Moser
              jsizzle Jon Kessler
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: