From 4af5dbbe2b415a01615e9da161d9e22bf0d669f5 Mon Sep 17 00:00:00 2001 From: Slimane AMAR Date: Thu, 26 Dec 2024 15:24:36 +0100 Subject: [PATCH] Restore deleted method Signed-off-by: Slimane AMAR --- .../computation/service/AbstractComputationObserver.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/powsybl/ws/commons/computation/service/AbstractComputationObserver.java b/src/main/java/com/powsybl/ws/commons/computation/service/AbstractComputationObserver.java index f308f98..e48f16e 100644 --- a/src/main/java/com/powsybl/ws/commons/computation/service/AbstractComputationObserver.java +++ b/src/main/java/com/powsybl/ws/commons/computation/service/AbstractComputationObserver.java @@ -53,6 +53,10 @@ protected Observation createObservation(String name, AbstractComputationRunConte return observation; } + public T observe(String name, AbstractComputationRunContext

runContext, Observation.CheckedCallable callable) throws E { + return createObservation(name, runContext).observeChecked(callable); + } + public void observe(String name, AbstractComputationRunContext

runContext, Observation.CheckedRunnable callable) throws E { createObservation(name, runContext).observeChecked(callable); }