import org.simantics.db.AsyncReadGraph;
import org.simantics.db.common.utils.Logger;
import org.simantics.db.exception.DatabaseException;
import org.simantics.db.AsyncReadGraph;
import org.simantics.db.common.utils.Logger;
import org.simantics.db.exception.DatabaseException;
import org.simantics.db.impl.graph.ReadGraphImpl;
import org.simantics.db.procedure.AsyncMultiProcedure;
import org.simantics.db.impl.graph.ReadGraphImpl;
import org.simantics.db.procedure.AsyncMultiProcedure;
private final AsyncMultiProcedure<Result> procedure;
private Object result = NO_RESULT;
private Throwable exception = null;
private final AsyncMultiProcedure<Result> procedure;
private Object result = NO_RESULT;
private Throwable exception = null;
- public BlockingAsyncMultiProcedure(ReadGraphImpl graph, AsyncMultiProcedure<Result> procedure, Object key) {
+ public BlockingAsyncMultiProcedure(AsyncBarrierImpl barrier, ReadGraphImpl procedureGraph, AsyncMultiProcedure<Result> procedure, Object key) {
} catch (Throwable throwable) {
Logger.defaultLogError("AsyncProcedure.execute threw for " + procedure, throwable);
}
} catch (Throwable throwable) {
Logger.defaultLogError("AsyncProcedure.execute threw for " + procedure, throwable);
}
} catch (Throwable throwable) {
Logger.defaultLogError("AsyncProcedure.finish threw for " + procedure, throwable);
} catch (Throwable throwable) {
Logger.defaultLogError("AsyncProcedure.finish threw for " + procedure, throwable);
} catch (Throwable throwable) {
Logger.defaultLogError("AsyncProcedure.exception threw for " + procedure, throwable);
} finally {
} catch (Throwable throwable) {
Logger.defaultLogError("AsyncProcedure.exception threw for " + procedure, throwable);
} finally {
if (exception != null) {
if (exception instanceof DatabaseException) throw (DatabaseException) exception;
throw new DatabaseException(exception);
} else {
return (Result) result;
}
if (exception != null) {
if (exception instanceof DatabaseException) throw (DatabaseException) exception;
throw new DatabaseException(exception);
} else {
return (Result) result;
}