Class UIBackgroundRunnerRW

    • Constructor Detail

      • UIBackgroundRunnerRW

        public UIBackgroundRunnerRW​(DFLockable lockable,
                                    java.lang.String taskName,
                                    boolean cancellable)
    • Method Detail

      • createTask

        protected Task createTask()
        Overrides:
        createTask in class BackgroundRunner
        Returns:
        The locking object that guards creation of a new task. Use when you need to query task or other things computed during start()
      • phase1Cancelled

        public boolean phase1Cancelled​(CancelException exc)
        Overrides:
        phase1Cancelled in class BackgroundRunner
        Returns:
        when true this runner continues with AWT (second) phase. If false, the AWT phase is skipped.
      • getExecutorService

        protected java.util.concurrent.ScheduledExecutorService getExecutorService()
        We need single thread executor service per lockable.
        Overrides:
        getExecutorService in class BackgroundRunner
        Returns:
        returns ExecutorService for use in this bg runner
      • 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 class BackgroundRunner
        Returns:
        when true this runner continues with AWT (second) phase. If false, the AWT phase is skipped.