GeographicRotationStrategy class
A proxy rotation strategy that selects proxies based on geographic location
- Implemented types
Constructors
- GeographicRotationStrategy.new({String? targetCountry, String? targetRegion, int? maxLatency, bool preferSameRegion = true, bool useLatencyBasedSelection = true, Random? random})
- Creates a new GeographicRotationStrategy
Properties
- description → String
-
Gets the description of the strategy
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxLatency → int?
-
The maximum latency in milliseconds
final
- name → String
-
Gets the name of the strategy
no setteroverride
- preferSameRegion → bool
-
Whether to prefer proxies in the same region as the target
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- targetCountry → String?
-
The target country code
final
- targetRegion → String?
-
The target region
final
- useLatencyBasedSelection → bool
-
Whether to use latency-based selection
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
selectProxy(
List< Proxy> proxies) → Proxy -
Selects a proxy from the given list
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited