I'm using Infinispan 5.0.1 on Linux.
I'm configuring it programatically:
Configuration configuration = new Configuration(); configuration = configuration.fluent().eviction().maxEntries(Integer.valueOf(1000)).strategy(EvictionStrategy.FIFO).build(); DefaultCacheManager cacheManager = new DefaultCacheManager(configuration); cacheManager.startCache("monitorCache");
then I use this monitorCache around in my program. This is fine, except that sometimes I want to change the configuration of the cacheManager after it was created.
For example: if there are some circumstances met then the cache should hold 10000 entries instead of 1000.
Is this possible and how?
No resizing of data container at this time! Just use the larger one.