AdvancedProxyManager class

Advanced proxy manager with additional features

Constructors

AdvancedProxyManager({required ProxyRepository repository, ProxyAnalyticsService? analyticsService, ProxyPreloaderService? preloaderService, ProxyCacheManager? cacheManager, RotationStrategyType strategyType = RotationStrategyType.roundRobin})
Creates a new AdvancedProxyManager with the given parameters

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

dispose() → void
Disposes the proxy manager
fetchProxies({ProxyFilterOptions options = const ProxyFilterOptions()}) → Future<List<Proxy>>
Fetches proxies from various sources
getCacheStats() → Map<String, dynamic>?
Gets the cache statistics
getNextProxy() → Future<Proxy?>
Gets the next proxy from the rotation strategy
getProxyFromCountry(String countryCode) → Future<Proxy?>
Gets a proxy from a specific country
getProxyWithProtocol(ProxyProtocol protocol) → Future<Proxy?>
Gets a proxy with the specified protocol
getRotationStrategyDescription() → String
Gets the description of the current rotation strategy
getRotationStrategyName() → String
Gets the name of the current rotation strategy
getRotationStrategyType() → RotationStrategyType
Gets the current rotation strategy type
getUsePreloadedProxies() → bool
Gets whether preloaded proxies are being used
getValidatedProxies({ProxyFilterOptions options = const ProxyFilterOptions(count: 10), void onProgress(int completed, int total)?}) → Future<List<Proxy>>
Gets validated proxies
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
recordSuccess(Proxy proxy) → void
Records a successful request with a proxy
setRotationStrategy(RotationStrategyType strategyType) → void
Sets the proxy rotation strategy
setUsePreloadedProxies(bool usePreloadedProxies) → void
Enables or disables the use of preloaded proxies
toString() → String
A string representation of this object.
inherited
validateProxy(Proxy proxy) → Future<bool>
Validates a proxy

Operators

operator ==(Object other) → bool
The equality operator.
inherited