]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db/src/org/simantics/db/request/MultiRead.java
Multiple reader thread support for db client
[simantics/platform.git] / bundles / org.simantics.db / src / org / simantics / db / request / MultiRead.java
index b8a4c201277d6c5cbd7cf119d5a619538900c019..0754ac73f77ded327440c062d855a63ba85fa712 100644 (file)
@@ -16,6 +16,7 @@ import org.simantics.db.Session;
 import org.simantics.db.exception.CancelTransactionException;
 import org.simantics.db.exception.DatabaseException;
 import org.simantics.db.procedure.AsyncMultiProcedure;
+import org.simantics.db.procedure.SyncMultiProcedure;
 
 /**
  * The <code>GraphRequest</code> interface is used to create transaction
@@ -91,6 +92,6 @@ public interface MultiRead<Result> {
      * @throws CancelTransactionException to indicate that the request needs to
      *         be cancelled and any changes rolled back
      */
-    void perform(ReadGraph graph, AsyncMultiProcedure<Result> callback) throws DatabaseException;
+    void perform(ReadGraph graph, SyncMultiProcedure<Result> callback) throws DatabaseException;
     
  }