AdvancedProxyManagerAdapter class
Adapter for using AdvancedProxyManager as a ProxyManager
- Implemented types
Constructors
- AdvancedProxyManagerAdapter.new(AdvancedProxyManager _advancedProxyManager)
- Creates a new AdvancedProxyManagerAdapter with the given advanced proxy manager
Properties
- analyticsService → ProxyAnalyticsService?
-
Analytics service for tracking proxy usage
no setteroverride
- getProxies → GetProxies
-
Use case for getting proxies
no setteroverride
- getValidatedProxies → GetValidatedProxies
-
Use case for getting validated proxies
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
-
proxies
→ List<
Proxy> -
Gets the current list of proxies
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
validatedProxies
→ List<
Proxy> -
Gets the current list of validated proxies
no setteroverride
- validateProxy → ValidateProxy
-
Use case for validating proxies
no setteroverride
Methods
-
dispose(
) → void -
fetchProxies(
{ProxyFilterOptions options = const ProxyFilterOptions()}) → Future< List< Proxy> > -
Fetches proxies from various sources with advanced filtering options
override
-
fetchProxiesLegacy(
{int count = 10, bool onlyHttps = false, List< String> ? countries}) → Future<List< Proxy> > -
Fetches proxies from various sources with legacy parameters
override
-
fetchValidatedProxies(
{ProxyFilterOptions options = const ProxyFilterOptions(), void onProgress(int completed, int total)?}) → Future< List< Proxy> > -
Gets a list of validated proxies with advanced filtering options
override
-
fetchValidatedProxiesLegacy(
{int count = 10, bool onlyHttps = false, List< String> ? countries, void onProgress(int completed, int total)?}) → Future<List< Proxy> > -
Gets a list of validated proxies with legacy parameters
override
-
getAnalytics(
) → Future< ProxyAnalytics?> -
Gets the current analytics data
override
-
getLeastRecentlyUsedProxy(
{bool validated = true}) → Proxy -
Gets the least recently used proxy
override
-
getNextProxy(
{RotationStrategyType? strategyType, bool useScoring = false, bool validated = true}) → Proxy -
Gets the next proxy in the rotation
override
-
getNextProxyAsync(
) → Future< Proxy?> - Gets the next proxy asynchronously
-
getRandomProxy(
{bool useScoring = false, bool validated = true}) → Proxy -
Gets a random proxy
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
recordFailure(
Proxy proxy) → Future< void> -
Records a failed request with a proxy
override
-
recordSuccess(
Proxy proxy, [int? responseTimeMs]) → Future< void> -
Records a successful request with a proxy
override
-
resetAnalytics(
) → Future< void> -
Resets the analytics data
override
-
setRotationStrategy(
dynamic strategyType) → void -
Sets the proxy rotation strategy
override
-
toString(
) → String -
A string representation of this object.
inherited
-
validateSingleProxy(
Proxy proxy) → Future< bool> -
validateSpecificProxy(
Proxy proxy, {String? testUrl, int timeout = 10000, bool updateScore = true}) → Future< bool> -
Validates a specific proxy
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited