]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db/src/org/simantics/db/AsyncRequestProcessor.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.db / src / org / simantics / db / AsyncRequestProcessor.java
index e1707d94e259e361f3f6369d0ef30cbe693d7f59..3f17927e223693752142a51645fdf7565412765a 100644 (file)
@@ -1,88 +1,88 @@
-/*******************************************************************************\r
- * Copyright (c) 2007, 2010 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
- *     VTT Technical Research Centre of Finland - initial API and implementation\r
- *******************************************************************************/\r
-package org.simantics.db;\r
-\r
-import org.simantics.db.procedure.AsyncListener;\r
-import org.simantics.db.procedure.AsyncProcedure;\r
-import org.simantics.db.procedure.Listener;\r
-import org.simantics.db.procedure.Procedure;\r
-import org.simantics.db.procedure.SyncListener;\r
-import org.simantics.db.procedure.SyncProcedure;\r
-import org.simantics.db.request.AsyncMultiRead;\r
-import org.simantics.db.request.AsyncRead;\r
-import org.simantics.db.request.MultiRead;\r
-import org.simantics.db.request.Read;\r
-import org.simantics.db.request.ReadInterface;\r
-import org.simantics.db.request.Write;\r
-import org.simantics.db.request.WriteInterface;\r
-import org.simantics.db.request.WriteOnly;\r
-\r
-/**\r
- * \r
- * For initiating requests in asynchronous manner. The possible requests are\r
- * <ul>\r
- * <li>{@link Read} for computing a single result synchronously\r
- * <li>{@link AsyncRead} for computing a single result asynchronously\r
- * <li>{@link MultiRead} for computing a collection of results synchronously\r
- * <li>{@link AsyncMultiRead} for computing a collection of results\r
- * asynchronously\r
- * <li>{@link Write} for reading and writing synchronously\r
- * <li>{@link WriteOnly} for writing synchronously\r
- * </ul>\r
- * <p>\r
- * The standard AsyncRequestProcessors are\r
- * <ul>\r
- * <li>{@link AsyncReadGraph} for performing requests during other requests\r
- * <li>{@link Session} for initiating a transactions for performing requests\r
- * <li>{@link MergingGraphRequestProcessor} for merging several requests in a\r
- * single transaction\r
- * </ul>\r
- * \r
- * Database services (see e.g. {@link Session}) are available from implemented\r
- * {@link ServiceLocator}. For a synchronous counterpart with the same\r
- * functionality as AsyncRequestProcessor see {@link RequestProcessor}\r
- * \r
- * @version 0.7\r
- * @author Antti Villberg\r
- * @see Read\r
- * @see AsyncRead\r
- * @see MultiRead\r
- * @see AsyncMultiRead\r
- * @see Write\r
- * @see WriteOnly\r
- * @see AsyncReadGraph\r
- * @see Session\r
- * @see MergingGraphRequestProcessor\r
- * @see RequestProcessor\r
- */\r
-public interface AsyncRequestProcessor extends ServiceLocator, AsyncRequestProcessorSpecific {\r
-\r
-       Resource getRootLibrary();\r
-       \r
-    /**\r
-     * @return the {@link Session} for which this processor is based on.\r
-     */\r
-    Session getSession();\r
-    \r
-    <T> void async(ReadInterface<T> r, Procedure<T> procedure);\r
-    <T> void async(ReadInterface<T> r, AsyncProcedure<T> procedure);\r
-    <T> void async(ReadInterface<T> r, SyncProcedure<T> procedure);\r
-    <T> void async(ReadInterface<T> r, Listener<T> procedure);\r
-    <T> void async(ReadInterface<T> r, AsyncListener<T> procedure);\r
-    <T> void async(ReadInterface<T> r, SyncListener<T> procedure);\r
-    \r
-    <T> void async(WriteInterface<T> r);\r
-    <T> void async(WriteInterface<T> r, Procedure<T> procedure);\r
-    \r
-    Object getModificationCounter();\r
-    \r
-}\r
+/*******************************************************************************
+ * Copyright (c) 2007, 2010 Association for Decentralized Information Management
+ * in Industry THTH ry.
+ * 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:
+ *     VTT Technical Research Centre of Finland - initial API and implementation
+ *******************************************************************************/
+package org.simantics.db;
+
+import org.simantics.db.procedure.AsyncListener;
+import org.simantics.db.procedure.AsyncProcedure;
+import org.simantics.db.procedure.Listener;
+import org.simantics.db.procedure.Procedure;
+import org.simantics.db.procedure.SyncListener;
+import org.simantics.db.procedure.SyncProcedure;
+import org.simantics.db.request.AsyncMultiRead;
+import org.simantics.db.request.AsyncRead;
+import org.simantics.db.request.MultiRead;
+import org.simantics.db.request.Read;
+import org.simantics.db.request.ReadInterface;
+import org.simantics.db.request.Write;
+import org.simantics.db.request.WriteInterface;
+import org.simantics.db.request.WriteOnly;
+
+/**
+ * 
+ * For initiating requests in asynchronous manner. The possible requests are
+ * <ul>
+ * <li>{@link Read} for computing a single result synchronously
+ * <li>{@link AsyncRead} for computing a single result asynchronously
+ * <li>{@link MultiRead} for computing a collection of results synchronously
+ * <li>{@link AsyncMultiRead} for computing a collection of results
+ * asynchronously
+ * <li>{@link Write} for reading and writing synchronously
+ * <li>{@link WriteOnly} for writing synchronously
+ * </ul>
+ * <p>
+ * The standard AsyncRequestProcessors are
+ * <ul>
+ * <li>{@link AsyncReadGraph} for performing requests during other requests
+ * <li>{@link Session} for initiating a transactions for performing requests
+ * <li>{@link MergingGraphRequestProcessor} for merging several requests in a
+ * single transaction
+ * </ul>
+ * 
+ * Database services (see e.g. {@link Session}) are available from implemented
+ * {@link ServiceLocator}. For a synchronous counterpart with the same
+ * functionality as AsyncRequestProcessor see {@link RequestProcessor}
+ * 
+ * @version 0.7
+ * @author Antti Villberg
+ * @see Read
+ * @see AsyncRead
+ * @see MultiRead
+ * @see AsyncMultiRead
+ * @see Write
+ * @see WriteOnly
+ * @see AsyncReadGraph
+ * @see Session
+ * @see MergingGraphRequestProcessor
+ * @see RequestProcessor
+ */
+public interface AsyncRequestProcessor extends ServiceLocator, AsyncRequestProcessorSpecific {
+
+       Resource getRootLibrary();
+       
+    /**
+     * @return the {@link Session} for which this processor is based on.
+     */
+    Session getSession();
+    
+    <T> void async(ReadInterface<T> r, Procedure<T> procedure);
+    <T> void async(ReadInterface<T> r, AsyncProcedure<T> procedure);
+    <T> void async(ReadInterface<T> r, SyncProcedure<T> procedure);
+    <T> void async(ReadInterface<T> r, Listener<T> procedure);
+    <T> void async(ReadInterface<T> r, AsyncListener<T> procedure);
+    <T> void async(ReadInterface<T> r, SyncListener<T> procedure);
+    
+    <T> void async(WriteInterface<T> r);
+    <T> void async(WriteInterface<T> r, Procedure<T> procedure);
+    
+    Object getModificationCounter();
+    
+}