Class SlowRuleLogger

java.lang.Object
org.languagetool.RuleLogger
org.languagetool.OutputStreamLogger
org.languagetool.SlowRuleLogger
All Implemented Interfaces:
Predicate<org.languagetool.RuleLoggerMessage>

public class SlowRuleLogger extends org.languagetool.OutputStreamLogger implements Predicate<org.languagetool.RuleLoggerMessage>
  • Field Details

    • threshold

      private int threshold
  • Constructor Details

    • SlowRuleLogger

      public SlowRuleLogger(PrintStream stream)
    • SlowRuleLogger

      public SlowRuleLogger(PrintStream stream, int slowRuleLoggingThreshold)
  • Method Details

    • test

      public boolean test(org.languagetool.RuleLoggerMessage message)
      Specified by:
      test in interface Predicate<org.languagetool.RuleLoggerMessage>
    • getThreshold

      public int getThreshold()
    • setThreshold

      public void setThreshold(int threshold)