X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.db%2Fsrc%2Forg%2Fsimantics%2Fdb%2FAsyncRequestProcessorSpecific.java;h=429696cda867a078c72ade8baef22733b2786be5;hp=182d5686268a862044f209bfd89f454e3bd6adc1;hb=56a799c9b7d395cefb59e101cd0f7ce8d68f88e6;hpb=43b5be1b099b479a20ac36e3bf2c6703242f068d diff --git a/bundles/org.simantics.db/src/org/simantics/db/AsyncRequestProcessorSpecific.java b/bundles/org.simantics.db/src/org/simantics/db/AsyncRequestProcessorSpecific.java index 182d56862..429696cda 100644 --- a/bundles/org.simantics.db/src/org/simantics/db/AsyncRequestProcessorSpecific.java +++ b/bundles/org.simantics.db/src/org/simantics/db/AsyncRequestProcessorSpecific.java @@ -11,6 +11,8 @@ *******************************************************************************/ 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; @@ -35,7 +37,6 @@ import org.simantics.db.request.Write; import org.simantics.db.request.WriteOnly; import org.simantics.db.request.WriteOnlyResult; import org.simantics.db.request.WriteResult; -import org.simantics.utils.datastructures.Callback; /** * @@ -472,13 +473,13 @@ public interface AsyncRequestProcessorSpecific extends ServiceLocator { /** * Asynchronously performs the given {@link Write}. The outcome of the - * request will be reported to given {@link Callback} in the form of a + * request will be reported to given {@link Consumer} 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}. + * @param request an instance of {@link Consumer}. */ - void asyncRequest(Write request, Callback callback); + void asyncRequest(Write request, Consumer callback); void asyncRequest(WriteResult r, Procedure procedure); @@ -493,13 +494,13 @@ public interface AsyncRequestProcessorSpecific extends ServiceLocator { /** * Asynchronously performs the given {@link WriteOnly}. The outcome of the - * request will be reported to given {@link Callback} in the form of a + * request will be reported to given {@link Consumer} 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}. + * @param request an instance of {@link Consumer}. */ - void asyncRequest(DelayedWrite request, Callback callback); + void asyncRequest(DelayedWrite request, Consumer callback); void asyncRequest(DelayedWriteResult r, Procedure procedure); @@ -513,13 +514,13 @@ public interface AsyncRequestProcessorSpecific extends ServiceLocator { /** * Asynchronously performs the given {@link WriteOnly}. The outcome of the - * request will be reported to given {@link Callback} in the form of a + * request will be reported to given {@link Consumer} 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}. + * @param request an instance of {@link Consumer}. */ - void asyncRequest(WriteOnly r, Callback callback); + void asyncRequest(WriteOnly r, Consumer callback); void asyncRequest(WriteOnlyResult r, Procedure procedure);