I have two cases where I want to do something immediately before/during/immediately after cache startup:
1) Visit all nodes
2) Evict all nodes (for whatever reason I want to clear the transient state)
I tried to do this in a listener method marked @CacheStarted, but the cache doesn't allow me to do anything, because the cache state by this time is STARTING, not STARTED. What should I do? Is it safe to override this check via option overrides? :)
Using the overrides would be a hack.
For evicting all nodes, caches start empty anyway unless you have state transfer or preloading from a cache loader enabled. But if you want to evict everything, I'm guessing you don't have these two enabled?