keySet() operation does not have in its API contract an obligation to return set items in insertion order.
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?
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 :-)
Yes, I did do that.
Thanks for your help.