Class RecordedDomainBin

java.lang.Object
org.eblocker.server.common.recorder.RecordedDomainBin

public class RecordedDomainBin extends Object
Records domains requested in a defined time interval
  • Constructor Details

    • RecordedDomainBin

      public RecordedDomainBin(java.time.Instant begin, java.time.Instant end)
  • Method Details

    • update

      public void update(String domain, boolean blocked, boolean patternRequest)
    • getEnd

      public java.time.Instant getEnd()
    • getBegin

      public java.time.Instant getBegin()
    • getRequests

      public Map<String,RecordedDomainCounter> getRequests()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • isWritable

      public boolean isWritable(java.time.Instant now)