JBossCache evict () and removeNode ()

Reading JBossCache documentation , there are different policies for eviction

JBoss Cache also comes with RemoveOnEvictActionPolicy, which calls Cache.removeNode () for each node to be extended , instead of Cache.evict () .

I checked the documentation and API, but I can not understand the difference between them.

Does anyone know such a difference?

+4
source share
1 answer

Looking at the RemoveNodeCommand () and EvictCommand () objects ...

removeNode () removes the node and child nodes, if any.

evict () removes data from node, but does not delete it. Only if node is a leaf does it also remove node.

(version 3.1.0.GA)

+1
source

All Articles