Package com._1c.g5.v8.derived.computer
Class DerivedDataComputerMonitorHolder
- java.lang.Object
-
- com._1c.g5.v8.derived.computer.DerivedDataComputerMonitorHolder
-
public class DerivedDataComputerMonitorHolder extends Object
Threadlocal monitor holder for the currentIDerivedDataComputer
computation call. Should be used in the legacy code for operative cancelling of computations in case if the monitor isn't available via the method call parameters
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
cleanMonitor()
Cleans the stored monitor, if anystatic void
dropIfCancelled()
static org.eclipse.core.runtime.IProgressMonitor
getCurrentMonitor()
Gets the current monitor for the current thread, if setstatic void
setCurrentMonitor(org.eclipse.core.runtime.IProgressMonitor monitor)
Sets the current monitor for the current thread
-
-
-
Method Detail
-
cleanMonitor
public static void cleanMonitor()
Cleans the stored monitor, if any
-
dropIfCancelled
public static void dropIfCancelled()
-
getCurrentMonitor
public static org.eclipse.core.runtime.IProgressMonitor getCurrentMonitor()
Gets the current monitor for the current thread, if set- Returns:
- The current monitor if any. May be
null
-
setCurrentMonitor
public static void setCurrentMonitor(org.eclipse.core.runtime.IProgressMonitor monitor)
Sets the current monitor for the current thread- Parameters:
monitor
- The monitor to set. May not benull
-
-