WeightedRotationStrategy class
Weighted proxy rotation strategy that selects proxies based on their performance scores
- Implemented types
Constructors
-
WeightedRotationStrategy.new({required List<
Proxy> proxies, double minWeight = 1.0, double maxWeight = 10.0}) - Creates a new WeightedRotationStrategy with the given parameters
Properties
Methods
-
getNextProxy(
) → Proxy? -
Gets the next proxy from the internal list
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
recordFailure(
Proxy proxy) → void -
Records a failed request with a proxy
override
-
recordSuccess(
Proxy proxy) → void -
Records a successful request with a proxy
override
-
selectProxy(
List< Proxy> proxies) → Proxy -
Selects the next proxy from the given list
override
-
toString(
) → String -
A string representation of this object.
inherited
-
updateProxies(
List< Proxy> proxies) → void -
Updates the internal list of proxies
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited