[infinispan-dev] About size()

Tristan Tarrant ttarrant at redhat.com
Tue Oct 7 10:59:25 EDT 2014


I'm not sure idiot-proof API is what we want to encourage. I'd rather 
tell users to RTFM.

Tristan

On 07/10/14 16:23, Sanne Grinovero wrote:
> On 7 October 2014 14:42, Radim Vansa <rvansa at redhat.com> wrote:
>> Considering the frequency of "How do I get the number of entries in
>> cache", "How do I get all keys" on all forums, I think that backing to
>> runtime exception would not satisfy the users.
> Correct but when they get to ask the right question, that's usually
> after several hours of debugging and swearing.
> With an immediate exception, they get immediate advice and hopefully a
> hint of where to look in the docs for the special methods like
> statistics, disabling the exception-throwing decorator, or implement
> their own M/R job with the exact flags they need.
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>
>



More information about the infinispan-dev mailing list