java.lang.Object
net.i2p.util.LogSuppressor.Decision
Enclosing class:
LogSuppressor

public static final class LogSuppressor.Decisionextends Object
What the caller should do with one occurrence.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final boolean
    True if this occurrence should be written.
    final long
    Occurrences collapsed since the previous write; zero when none.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Decision(boolean log, long suppressed)
    Record what the caller should do with one occurrence.
  • Method Summary

    Methods inherited from class Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • log

      public final boolean log
      True if this occurrence should be written.
    • suppressed

      public final long suppressed
      Occurrences collapsed since the previous write; zero when none.
  • Constructor Details

    • Decision

      Decision(boolean log, long suppressed)
      Record what the caller should do with one occurrence.
      Parameters:
      log - true if this occurrence should be written
      suppressed - how many repeats this write stands in for, 0 for the first