Class RecordedDomainCounter
java.lang.Object
org.eblocker.server.common.recorder.RecordedDomainCounter
Counts requested domains with their blocked state. Only the last blocked state is saved.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RecordedDomainCounter
public RecordedDomainCounter()
-
-
Method Details
-
update
public void update(boolean blocked, boolean patternRequest) -
isBlocked
public boolean isBlocked() -
getCount
public int getCount() -
equals
-
hashCode
public int hashCode() -
update
Merge two counters. The blocked state of the given counter overwrites the existing blocked state.- Parameters:
counter-
-