Class RecordedDomainCounter

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

public class RecordedDomainCounter extends Object
Counts requested domains with their blocked state. Only the last blocked state is saved.
  • Constructor Details

    • RecordedDomainCounter

      public RecordedDomainCounter()
  • Method Details

    • update

      public void update(boolean blocked, boolean patternRequest)
    • isBlocked

      public boolean isBlocked()
    • getCount

      public int getCount()
    • equals

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

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

      public void update(RecordedDomainCounter counter)
      Merge two counters. The blocked state of the given counter overwrites the existing blocked state.
      Parameters:
      counter -