Re: [infinispan-dev] Per-invocation flag wiki

2011-05-18 Thread Galder Zamarreño
That's been added to http://community.jboss.org/docs/DOC-16803 On May 17, 2011, at 7:38 PM, Manik Surtani wrote: > +1! > > > On 16 May 2011, at 18:37, Sanne Grinovero wrote: > >> good place to remind that if you don't want the return value of a >> write operation then you need to specify both

Re: [infinispan-dev] Per-invocation flag wiki

2011-05-17 Thread Manik Surtani
+1! On 16 May 2011, at 18:37, Sanne Grinovero wrote: > good place to remind that if you don't want the return value of a > write operation then you need to specify both flags: > cache.withFlags(Flag.SKIP_REMOTE_LOOKUP, Flag.SKIP_CACHE_LOAD).put( .. ) > > I guess that nobody knows that :) > > S

Re: [infinispan-dev] Per-invocation flag wiki

2011-05-17 Thread Galder Zamarreño
On May 16, 2011, at 7:47 PM, Sanne Grinovero wrote: > 2011/5/16 Emmanuel Bernard : >> Couldn't you have a higher level flag that says Flag.IGNORE_RETURN_VALUE so >> that people wo a PhD can benefit form the feature? > > when I discovered that, that was my exact thought as well. > > then we sta

Re: [infinispan-dev] Per-invocation flag wiki

2011-05-17 Thread Galder Zamarreño
Fair point, I'll add an FAQ or Wiki on this. On May 16, 2011, at 5:24 PM, Emmanuel Bernard wrote: > Yes I think something use case driven would make a nice portal. > > On 16 mai 2011, at 17:22, Galder Zamarreño wrote: > >> >> On May 16, 2011, at 2:23 PM, Emmanuel Bernard wrote: >> >>> Your de

Re: [infinispan-dev] Per-invocation flag wiki

2011-05-16 Thread Sanne Grinovero
2011/5/16 Emmanuel Bernard : > Couldn't you have a higher level flag that says Flag.IGNORE_RETURN_VALUE so > that people wo a PhD can benefit form the feature? when I discovered that, that was my exact thought as well. then we started discussing about a proper interface to avoid return values..

Re: [infinispan-dev] Per-invocation flag wiki

2011-05-16 Thread Emmanuel Bernard
Couldn't you have a higher level flag that says Flag.IGNORE_RETURN_VALUE so that people wo a PhD can benefit form the feature? On 16 mai 2011, at 19:37, Sanne Grinovero wrote: > good place to remind that if you don't want the return value of a > write operation then you need to specify both flag

Re: [infinispan-dev] Per-invocation flag wiki

2011-05-16 Thread Sanne Grinovero
good place to remind that if you don't want the return value of a write operation then you need to specify both flags: cache.withFlags(Flag.SKIP_REMOTE_LOOKUP, Flag.SKIP_CACHE_LOAD).put( .. ) I guess that nobody knows that :) Sanne 2011/5/16 Emmanuel Bernard : > Yes I think something use case dr

Re: [infinispan-dev] Per-invocation flag wiki

2011-05-16 Thread Emmanuel Bernard
Yes I think something use case driven would make a nice portal. On 16 mai 2011, at 17:22, Galder Zamarreño wrote: > > On May 16, 2011, at 2:23 PM, Emmanuel Bernard wrote: > >> Your description explains a use case / pattern but wo code showing how to >> implement it properly. > > True and I t

Re: [infinispan-dev] Per-invocation flag wiki

2011-05-16 Thread Galder Zamarreño
On May 16, 2011, at 2:23 PM, Emmanuel Bernard wrote: > Your description explains a use case / pattern but wo code showing how to > implement it properly. True and I think you have a point, though the use of putForExternalRead() itself is something that should be documented either its javadoc

Re: [infinispan-dev] Per-invocation flag wiki

2011-05-16 Thread Emmanuel Bernard
Your description explains a use case / pattern but wo code showing how to implement it properly. In this case what's the best way for me to verify that the new data has indeed been pushed to the cache? put and then immediate get Put, wait, get Put all entries, then get all entries, and loop til

[infinispan-dev] Per-invocation flag wiki

2011-05-16 Thread Galder Zamarreño
More wikis. I've just created http://community.jboss.org/docs/DOC-16803 which explains what Infinispan flags are, what they're used for...etc. Feedback appreciated -- Galder Zamarreño Sr. Software Engineer Infinispan, JBoss Cache ___ infinispan-dev ma