Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-8310

LockedStream invokeAll

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 9.2.0.Alpha2
    • None
    • None
    • None

    Description

      We need a way to run a command for all data in the cache (while under a lock) but also return a value for the data processed.

      There are a few different APIs we could do for this having a Cache<K, V>

      blocking variant

      <R> Map<K, R> evalAll(BiFunction<Cache<K, V>, ? super CacheEntry<K, V>, R> biFunction)
      

      back pressure aware variant - this would have to be a hot observer on subscribe

      <R> Publisher<R> evalAll(BiFunction<Cache<K, V>, ? super CacheEntry<K, V> R> biFunction)
      

      Attachments

        Activity

          People

            wburns@redhat.com Will Burns
            wburns@redhat.com Will Burns
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: