--- /dev/null
+/*******************************************************************************\r
+ * Copyright (c) 2012 Association for Decentralized Information Management\r
+ * in Industry THTH ry.\r
+ * All rights reserved. This program and the accompanying materials\r
+ * are made available under the terms of the Eclipse Public License v1.0\r
+ * which accompanies this distribution, and is available at\r
+ * http://www.eclipse.org/legal/epl-v10.html\r
+ *\r
+ * Contributors:\r
+ * Semantum Oy - initial API and implementation\r
+ *******************************************************************************/\r
+package org.simantics.event.writer;\r
+\r
+import org.simantics.db.Resource;\r
+import org.simantics.db.WriteOnlyGraph;\r
+import org.simantics.db.exception.DatabaseException;\r
+\r
+/**\r
+ * An interface used for queueing to-be-written events in {@link EventWriterJob}.\r
+ * \r
+ * @author Tuukka Lehtonen\r
+ * \r
+ * @see EventWriterJob\r
+ */\r
+public interface EventWriteTask {\r
+\r
+ /**\r
+ * @param graph\r
+ * @param eventProducer\r
+ * @return the written event\r
+ * @throws DatabaseException\r
+ */\r
+ Resource write(WriteOnlyGraph graph, Resource slice, int number) throws DatabaseException;\r
+\r
+}
\ No newline at end of file