Re: [infinispan-dev] New API to iterate over current entries in cache

2014-05-06 Thread Sanne Grinovero
Sorry indentation below is broken because someone on this thread is using HTML formatted emails. On 5 May 2014 14:38, Dan Berindei dan.berin...@gmail.com wrote: On Thu, May 1, 2014 at 4:50 PM, William Burns mudokon...@gmail.com wrote: On Thu, May 1, 2014 at 8:59 AM, Sanne Grinovero

Re: [infinispan-dev] New API to iterate over current entries in cache

2014-05-01 Thread Sanne Grinovero
On 30 April 2014 15:06, William Burns mudokon...@gmail.com wrote: Was wondering if anyone had any opinions on the API for this. These are a few options that Dan and I mulled over: Note the CloseableIterable inteface mentioned is just an interface that extends both Closeable and Iterable.

Re: [infinispan-dev] New API to iterate over current entries in cache

2014-05-01 Thread William Burns
On Thu, May 1, 2014 at 8:59 AM, Sanne Grinovero sa...@infinispan.org wrote: On 30 April 2014 15:06, William Burns mudokon...@gmail.com wrote: Was wondering if anyone had any opinions on the API for this. These are a few options that Dan and I mulled over: Note the CloseableIterable inteface

Re: [infinispan-dev] New API to iterate over current entries in cache

2014-04-30 Thread William Burns
Was wondering if anyone had any opinions on the API for this. These are a few options that Dan and I mulled over: Note the CloseableIterable inteface mentioned is just an interface that extends both Closeable and Iterable. 1. The API that is very similar to previously proposed in this list but

Re: [infinispan-dev] New API to iterate over current entries in cache

2014-03-17 Thread Radim Vansa
Why listeners are not invoked? JCache iterator() notifies the listeners. Can the iterator remove entries? I assume there's no ordering guarantee, but behaviour under concurrent changes would be rather tricky. I don't like the idea of iterating over changing structure. If you need to iterate

Re: [infinispan-dev] New API to iterate over current entries in cache

2014-03-17 Thread William Burns
On Mon, Mar 17, 2014 at 10:45 AM, Radim Vansa rva...@redhat.com wrote: Why listeners are not invoked? JCache iterator() notifies the listeners. Like I mentioned this can be changed. However, I have not seen a cache entry visitor listener in JCache. The only listeners I am aware of are for

Re: [infinispan-dev] New API to iterate over current entries in cache

2014-03-17 Thread Sanne Grinovero
I do realize you need such a feature, still as I pointed out when we first drafted it I'm skeptical because of the complexities you mention. It highly depends on what use cases we want to address, but as a general purpose solution I think this initial state received by the clients needs to be

Re: [infinispan-dev] New API to iterate over current entries in cache

2014-03-17 Thread William Burns
On Mon, Mar 17, 2014 at 1:43 PM, Sanne Grinovero sa...@infinispan.org wrote: I do realize you need such a feature, still as I pointed out when we first drafted it I'm skeptical because of the complexities you mention. It highly depends on what use cases we want to address, but as a general