Class OnPrintStreamStatusListenerBase

    • Field Detail

      • isStarted

        boolean isStarted
      • retrospectiveThresold

        long retrospectiveThresold
      • prefix

        java.lang.String prefix
        The prefix to place before each status message
        Since:
        1.1.10
    • Constructor Detail

      • OnPrintStreamStatusListenerBase

        public OnPrintStreamStatusListenerBase()
    • Method Detail

      • getPrintStream

        protected abstract java.io.PrintStream getPrintStream()
        The PrintStream used by derived classes
        Returns:
      • print

        private void print​(Status status)
      • retrospectivePrint

        private void retrospectivePrint()
        Print status messages retrospectively
      • isElapsedTimeLongerThanThreshold

        private boolean isElapsedTimeLongerThanThreshold​(long now,
                                                         long timestamp)
      • start

        public void start()
        Invoking the start method can cause the instance to print status messages created less than value of retrospectiveThresold.
        Specified by:
        start in interface LifeCycle
      • getPrefix

        public java.lang.String getPrefix()
      • setPrefix

        public void setPrefix​(java.lang.String prefix)
      • setRetrospective

        public void setRetrospective​(long retrospective)
      • getRetrospective

        public long getRetrospective()
      • stop

        public void stop()
        Specified by:
        stop in interface LifeCycle