RandomRotationStrategy class

Random proxy rotation strategy

Implemented types

Constructors

RandomRotationStrategy.new({required List<Proxy> proxies})
Creates a new RandomRotationStrategy with the given proxies

Properties

hashCode int
The hash code for this object.
no setterinherited
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