-
1. Re: Maintaining insertion order
vblagojevic Dec 28, 2012 9:27 AM (in response to kovica1)Hey,
keySet() operation does not have in its API contract an obligation to return set items in insertion order.
Regards,
Vladimir
-
2. Re: Maintaining insertion order
kovica1 Dec 28, 2012 9:36 AM (in response to vblagojevic)Hi!
Yes, that is correct.
It's just that I'm using Infinispan for all my other projects and I wanted to use it also for this one.
Because in this one I need just that, insertion order. LinkedHashMap provides it, so I found a ConcurrentLinkedHashMap on Google code, which is perfect for my needs.
The main Infinispan interface, org.infinispan.Cache, extends ConcurrentMap, which does not support insertion order, right?
Is there a way to make Infinispan use my cache implementation based on LinkedHAshMAp, not ConcurrentMap?
Best regards,
Kovi
-
3. Re: Maintaining insertion order
vblagojevic Dec 28, 2012 9:45 AM (in response to kovica1)Hey, unfortunately not. We do not support it now and I doubt it will be supported any time soon. If I was in your position I would go for plan B :-)
Cheers,
Vladimir
-
4. Re: Maintaining insertion order
kovica1 Dec 28, 2012 9:51 AM (in response to vblagojevic)Hi!
Yes, I did do that.
Thanks for your help.
Best regards,
Kovi