Re: [infinispan-dev] ConcurrentMap new methods implementation

2017-03-23 Thread Radim Vansa
On 03/23/2017 02:52 PM, Dan Berindei wrote: > Ideally I'd like to properly support non-serializable lambdas, too, by > using conditional write operations and retrying if unsuccessful. If > that turns out to be too tricky, we could also support > non-serializable lambdas for local caches only, and t

Re: [infinispan-dev] ConcurrentMap new methods implementation

2017-03-23 Thread William Burns
On Thu, Mar 23, 2017 at 11:10 AM Dan Berindei wrote: > Ideally I'd like to properly support non-serializable lambdas, too, by > using conditional write operations and retrying if unsuccessful. If > that turns out to be too tricky, we could also support > non-serializable lambdas for local caches

Re: [infinispan-dev] Deprecate collection methods on DataContainer interface

2017-03-23 Thread Dan Berindei
You have my vote :) Dan On Thu, Mar 23, 2017 at 3:26 PM, William Burns wrote: > Recently while looking at the DataContainer interface and implementation it > was noticed that the entrySet, values and keySet methods that return > collections are very inconsistent. The big issue is whether these

Re: [infinispan-dev] Stream operations under lock

2017-03-23 Thread Dan Berindei
On Wed, Mar 22, 2017 at 11:51 AM, Radim Vansa wrote: > On 03/21/2017 06:50 PM, William Burns wrote: >> >> >> On Tue, Mar 21, 2017 at 1:42 PM William Burns > > wrote: >> >> On Tue, Mar 21, 2017 at 12:53 PM Radim Vansa > > wrote: >> >>

Re: [infinispan-dev] ConcurrentMap new methods implementation

2017-03-23 Thread Dan Berindei
Ideally I'd like to properly support non-serializable lambdas, too, by using conditional write operations and retrying if unsuccessful. If that turns out to be too tricky, we could also support non-serializable lambdas for local caches only, and throw an exception if the cache is clustered. I'm no

Re: [infinispan-dev] Stream operations under lock

2017-03-23 Thread William Burns
On Wed, Mar 22, 2017 at 5:51 AM Radim Vansa wrote: > On 03/21/2017 06:50 PM, William Burns wrote: > > > > > > On Tue, Mar 21, 2017 at 1:42 PM William Burns > > wrote: > > > > On Tue, Mar 21, 2017 at 12:53 PM Radim Vansa > > wrote: >

[infinispan-dev] Deprecate collection methods on DataContainer interface

2017-03-23 Thread William Burns
Recently while looking at the DataContainer interface and implementation it was noticed that the entrySet, values and keySet methods that return collections are very inconsistent. The big issue is whether these methods return expired entries or not and if they are backing or copies etc. It was sugg

Re: [infinispan-dev] ConcurrentMap new methods implementation

2017-03-23 Thread Radim Vansa
On 03/22/2017 08:46 PM, Katia Aresti wrote: > Hi all, > > Since Java 8, some new methods are available in the ConcurrentMap > interface: merge, compute, computeIfAbsent, computeIfPresent, forEach, > replaceAll. ConcurrentMap interface provides a default implementation. > > I'm working on https://