blob: d430149f31b31f79672a0801d32c8ab39ee4885c [file] [log] [blame]
/***************************************************************************
* Copyright (c) 2004, 2005, 2006 Eike Stepper, Fuggerstr. 39, 10777 Berlin, Germany.
* 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());
}
}
}