Package com.im.commons.progress
Class UIBackgroundRunnerRO
- java.lang.Object
-
- com.im.commons.progress.BackgroundRunner
-
- com.im.commons.progress.UIBackgroundRunnerRO
-
public abstract class UIBackgroundRunnerRO extends BackgroundRunner
UI extension of background runner - this class creates newDFEnvironmentRO
usingEnvUtils
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.im.commons.progress.BackgroundRunner
BackgroundRunner.BackgroundTask
-
-
Constructor Summary
Constructors Constructor Description UIBackgroundRunnerRO(java.lang.String taskName, boolean cancelable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DFEnvironmentRO
getEnvironment()
boolean
phase1Cancelled(CancelException exc)
boolean
phase1Exception(java.lang.Exception exc)
All subclasses must override this method and provide more user-friendly error notification.protected void
phase1FinallyInternal()
-
Methods inherited from class com.im.commons.progress.BackgroundRunner
createTask, failTask, getCreateLock, getDelay, getExecutorService, getTask, interrupt, phase1Finally, phase1InRequestProcessor, phase2InAWT, processTheTask, restart, start
-
-
-
-
Method Detail
-
getEnvironment
public DFEnvironmentRO getEnvironment()
-
phase1Cancelled
public boolean phase1Cancelled(CancelException exc)
- Overrides:
phase1Cancelled
in classBackgroundRunner
- Returns:
- when true this runner continues with AWT (second) phase. If false, the AWT phase is skipped.
-
phase1FinallyInternal
protected final void phase1FinallyInternal()
- Overrides:
phase1FinallyInternal
in classBackgroundRunner
-
phase1Exception
public boolean phase1Exception(java.lang.Exception exc)
Description copied from class:BackgroundRunner
All subclasses must override this method and provide more user-friendly error notification.- Overrides:
phase1Exception
in classBackgroundRunner
- Returns:
- when true this runner continues with AWT (second) phase. If false, the AWT phase is skipped.
-
-