AdvancedRotationStrategy class
Advanced proxy rotation strategy that uses multiple factors to select the next proxy
- Implemented types
Constructors
-
AdvancedRotationStrategy.new({required List<
Proxy> proxies, int maxConsecutiveFailures = 3, int minTimeBetweenUses = 5000}) - Creates a new AdvancedRotationStrategy with the given parameters
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxConsecutiveFailures → int
-
The maximum number of consecutive failures before a proxy is skipped
final
- minTimeBetweenUses → int
-
The minimum time in milliseconds between uses of the same proxy
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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