*******************************************************************************/
package org.simantics.db;
+import java.util.function.Consumer;
+
import org.simantics.db.exception.DatabaseException;
import org.simantics.db.procedure.AsyncListener;
import org.simantics.db.procedure.AsyncMultiListener;
import org.simantics.db.request.WriteOnly;
import org.simantics.db.request.WriteOnlyResult;
import org.simantics.db.request.WriteResult;
-import org.simantics.utils.datastructures.Callback;
/**
*
* @param request an instance of {@link MultiRead}.
* @param procedure an instance of {@link AsyncMultiListener}.
*/
- <T> void asyncRequest(MultiRead<T> request, AsyncMultiListener<T> procedure);
+ //<T> void asyncRequest(MultiRead<T> request, AsyncMultiListener<T> procedure);
/**
* Asynchronously registers the given {@link SyncMultiListener} (as
* @param request an instance of {@link MultiRead}.
* @param procedure an instance of {@link AsyncMultiProcedure}.
*/
- <T> void asyncRequest(MultiRead<T> request, AsyncMultiProcedure<T> procedure);
+ //<T> void asyncRequest(MultiRead<T> request, AsyncMultiProcedure<T> procedure);
/**
* Asynchronously supplies the result determined from the given
<T> void asyncRequest(ExternalRead<T> request, Listener<T> procedure);
<T> void asyncRequest(ExternalRead<T> request, Procedure<T> procedure);
- /**
- * Asynchronously performs the given {@link Write}. The outcome of the
- * request will be lost.
- *
- * @param request an instance of {@link Write}.
- */
- void asyncRequest(Write request);
-
- /**
- * Asynchronously performs the given {@link Write}. The outcome of the
- * request will be reported to given {@link Callback} in the form of a
- * DatabaseException raised during request processing or null upon success.
- *
- * @param request an instance of {@link Write}.
- * @param request an instance of {@link Callback}.
- */
- void asyncRequest(Write request, Callback<DatabaseException> callback);
-
- <T> void asyncRequest(WriteResult<T> r, Procedure<T> procedure);
-
-
- /**
- * Asynchronously performs the given {@link WriteOnly}. The outcome of the
- * request will be lost.
- *
- * @param request an instance of {@link Write}.
- */
- void asyncRequest(DelayedWrite request);
-
- /**
- * Asynchronously performs the given {@link WriteOnly}. The outcome of the
- * request will be reported to given {@link Callback} in the form of a
- * DatabaseException raised during request processing or null upon success.
- *
- * @param request an instance of {@link WriteOnly}.
- * @param request an instance of {@link Callback}.
- */
- void asyncRequest(DelayedWrite request, Callback<DatabaseException> callback);
-
- <T> void asyncRequest(DelayedWriteResult<T> r, Procedure<T> procedure);
-
- /**
- * Asynchronously performs the given {@link WriteOnly}. The outcome of the
- * request will be lost.
- *
- * @param request an instance of {@link Write}.
- */
- void asyncRequest(WriteOnly r);
-
- /**
- * Asynchronously performs the given {@link WriteOnly}. The outcome of the
- * request will be reported to given {@link Callback} in the form of a
- * DatabaseException raised during request processing or null upon success.
- *
- * @param request an instance of {@link WriteOnly}.
- * @param request an instance of {@link Callback}.
- */
- void asyncRequest(WriteOnly r, Callback<DatabaseException> callback);
-
- <T> void asyncRequest(WriteOnlyResult<T> r, Procedure<T> procedure);
}