Packages that use Threshold
Package
Description
Definition-based incoming connection filter for server tunnels, with fine-grained access control by destination.
Uses of Threshold in net.i2p.i2ptunnel.access
Fields in net.i2p.i2ptunnel.access declared as ThresholdModifier and TypeFieldDescription(package private) static final ThresholdThreshold.ALLOWA Threshold that is never breached.private final ThresholdFilterDefinition.defaultThresholdLimit applied when an element names none.(package private) static final ThresholdThreshold.DENYA Threshold that is always breached.private ThresholdDefinitionParser.DefinitionBuilder.thresholdThe default threshold of the definition.private final ThresholdDestTracker.thresholdThe limit applied to that destination.protected final ThresholdFilterDefinitionElement.thresholdThe access threshold this element's destinations are subject to.private final ThresholdRecorder.thresholdLimit that must be exceeded before an entry is written.Methods in net.i2p.i2ptunnel.access that return ThresholdModifier and TypeMethodDescription(package private) ThresholdFilterDefinition.getDefaultThreshold()The threshold applied to a destination matched by no element.(package private) ThresholdFilterDefinitionElement.getThreshold()The access limit applied to the destinations this element names.(package private) ThresholdRecorder.getThreshold()Read the threshold that triggers a recording.private static ThresholdDefinitionParser.parseThreshold(String s) Parses the threshold word of a definition line.Methods in net.i2p.i2ptunnel.access with parameters of type ThresholdModifier and TypeMethodDescription(package private) booleanAccessCounter.isBreached(Threshold threshold, long now) Check if the given threshold has been breached.(package private) booleanDestTracker.isBreached(Threshold threshold, long now) Test the recorded attempts against a threshold, ageing out any that fall outside the rule's window.(package private) voidDefinitionParser.DefinitionBuilder.setDefaultThreshold(Threshold threshold) Sets the default threshold, once only.Constructors in net.i2p.i2ptunnel.access with parameters of type ThresholdModifierConstructorDescription(package private)DestTracker(Hash hash, Threshold threshold) Create a tracker for one remote destination with an empty access history.(package private)ExplicitFilterDefinitionElement(String b32, Threshold threshold) Create an element for the single destination named by the address, and decode it to the hash used as the tracker's key.(package private)FileFilterDefinitionElement(File file, Threshold threshold) Create a filter definition element that reads destinations from a file.(package private)FilterDefinition(Threshold defaultThreshold, FilterDefinitionElement[] elements, Recorder[] recorders) Create a definition and derive the purge interval from the longest threshold window among the default, the elements and the recorders.(package private)FilterDefinitionElement(Threshold threshold) Create an element that applies a single threshold to the destinations it names.(package private)Create a recorder writing to the given file.