/******************************************************************************* * Copyright (c) 2004, 2005, 2006 Eike Stepper, Sympedia Methods and Tools. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Eike Stepper - initial API and implementation *******************************************************************************/ package org.eclipse.emf.cdo.server.protocol; import org.eclipse.net4j.core.impl.AbstractRequest; import org.eclipse.emf.cdo.core.CdoProtocol; import java.util.Iterator; import java.util.List; public class InvalidateObjectRequest extends AbstractRequest { private List changedObjectIds; public InvalidateObjectRequest(List changedObjectIds) { this.changedObjectIds = changedObjectIds; } public short getSignalId() { return CdoProtocol.INVALIDATE_OBJECT; } public void request() { transmitInt(changedObjectIds.size()); for (Iterator iter = changedObjectIds.iterator(); iter.hasNext();) { Long id = (Long) iter.next(); transmitLong(id.longValue()); } } }