Class FileHandler.DelayedPublishRunnable

    • Field Detail

      • m_LogFile

        protected File m_LogFile
        the file to write to.
      • m_Stopped

        protected boolean m_Stopped
        whether the writing has been stopped.
    • Constructor Detail

      • DelayedPublishRunnable

        public DelayedPublishRunnable​(File logFile)
        Initializes the runnable.
        Parameters:
        logFile - the file to write to
    • Method Detail

      • doPublish

        protected void doPublish​(LogRecord record)
        Writes the record to disk.
        Parameters:
        record - the record to write
      • run

        public void run()
        When an object implementing interface Runnable is used to create a thread, starting the thread causes the object's run method to be called in that separately executing thread.

        The general contract of the method run is that it may take any action whatsoever.

        Specified by:
        run in interface Runnable
        See Also:
        Thread.run()
      • publish

        public void publish​(LogRecord record)
        Adds the record to write to disk.
        Parameters:
        record - the record to write out
      • stopExecution

        public void stopExecution()
        Stops the execution.
        Specified by:
        stopExecution in interface Stoppable
      • isStopped

        public boolean isStopped()
        Whether the execution has been stopped.
        Specified by:
        isStopped in interface StoppableWithFeedback
        Returns:
        true if stopped