]
Vladimir Blagojevic updated ISPN-8310:
--------------------------------------
Fix Version/s: 9.2.0.Alpha2
(was: 9.2.0.Alpha1)
LockedStream invokeAll
----------------------
Key: ISPN-8310
URL:
https://issues.jboss.org/browse/ISPN-8310
Project: Infinispan
Issue Type: Feature Request
Reporter: William Burns
Assignee: William Burns
Fix For: 9.2.0.Alpha2
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
{code}
<R> Map<K, R> evalAll(BiFunction<Cache<K, V>, ? super
CacheEntry<K, V>, R> biFunction)
{code}
back pressure aware variant - this would have to be a hot observer on subscribe
{code}
<R> Publisher<R> evalAll(BiFunction<Cache<K, V>, ? super
CacheEntry<K, V> R> biFunction)
{code}