423424425426427428429430431
public void evict(Fqn fqn, boolean recursive) { InvocationContext ctx = invocationContextContainer.get(); cacheStatusCheck(ctx); EvictCommand c = commandsFactory.buildEvictFqnCommand(fqn); c.setRecursive(recursive); invoker.invoke(ctx, c); }
424344454647484950
public class OptimisticCommandsFactoryImpl extends CommandsFactoryImpl { @Override public EvictCommand buildEvictFqnCommand(Fqn fqn) { EvictCommand command = new LegacyEvictCommand(fqn); command.initialize(notifier, dataContainer); return command; }
162163164165166167168169170171172
if (dataContainer.exists(fqn)) { List<Fqn> toEvict = dataContainer.getNodesForEviction(fqn, true); for (Fqn aFqn : toEvict) { EvictCommand evictFqnCommand = commandsFactory.buildEvictFqnCommand(aFqn); invoker.invoke(evictFqnCommand); } } else {
166167168169170171172173174
return command; } public EvictCommand buildEvictFqnCommand(Fqn fqn) { EvictCommand command = new EvictCommand(fqn); command.initialize(notifier, dataContainer); return command; }
427428429430431432433434435
185186187188189190191192193194195
172173174175176177178179180
142143144145146147148149150151152