297298299300301302303304305
} @Override @SuppressWarnings("unchecked") public Object visitRemoveCommand(InvocationContext ctx, RemoveCommand command) throws Throwable { modifications.add(new Remove(command.getKey())); affectedKeys.add(command.getKey()); return null; }
6869707172737475
public void clear() { enqueue(new Clear()); } public boolean remove(Object key) { enqueue(new Remove(key)); return true; }
137138139140141142143144145146147148
break; case CLEAR: super.clear(); break; case REMOVE: Remove r = (Remove) m; super.remove(r.getKey()); break; case PURGE_EXPIRED: super.purgeExpired(); break; default:
828384858687888990919293
break; case CLEAR: clear(); break; case REMOVE: Remove r = (Remove) m; remove(r.getKey()); break; default: throw new IllegalArgumentException("Unknown modification type " + m.getType()); } }