java.lang.Object
net.i2p.i2ptunnel.access.Recorder

class Recorderextends Object
Recorder definition for threshold breach logging.

Records destination hashes to specified file when threshold breach occurs.

  • Field Details

    • file

      private final File file
      File the access log is written to.
    • threshold

      private final Threshold threshold
      Limit that must be exceeded before an entry is written.
  • Constructor Details

    • Recorder

      Recorder(File file, Threshold threshold)
      Create a recorder writing to the given file.
      Parameters:
      file - to record hashes of destinations that breach the threshold
      threshold - the threshold that needs to be breached to trigger recording
  • Method Details

    • getFile

      File getFile()
      Read the file that breaching destinations are recorded to.
      Returns:
      the file whose contents are re-read on each filter cycle
    • getThreshold

      Threshold getThreshold()
      Read the threshold that triggers a recording.
      Returns:
      the threshold, whose seconds bound how far back the filter looks