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 currentIDerivedDataComputercomputation 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 SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcleanMonitor()Cleans the stored monitor, if anystatic voiddropIfCancelled()static org.eclipse.core.runtime.IProgressMonitorgetCurrentMonitor()Gets the current monitor for the current thread, if setstatic voidsetCurrentMonitor(org.eclipse.core.runtime.IProgressMonitor monitor)Sets the current monitor for the current thread
 
- 
- 
- 
Method Detail- 
cleanMonitorpublic static void cleanMonitor() Cleans the stored monitor, if any
 - 
dropIfCancelledpublic static void dropIfCancelled() 
 - 
getCurrentMonitorpublic 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
 
 - 
setCurrentMonitorpublic 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 be- null
 
 
- 
 
-