ProxyPreloaderService class

Service for preloading and background validation of proxies

Constructors

ProxyPreloaderService.new({required ProxyRepository repository, required ProxyCacheManager cacheManager, Duration validationInterval = const Duration(minutes: 30)})
Creates a new ProxyPreloaderService 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

getCacheStats() Map<String, dynamic>
Gets the cache statistics
getPreloadedProxies({int count = 10}) List<ProxyModel>
Gets preloaded proxies from the cache
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
preloadProxies() Future<void>
Preloads proxies into the cache
start() Future<void>
Starts the preloader service
stop() → void
Stops the preloader service
toString() String
A string representation of this object.
inherited
validateCachedProxies() Future<void>
Validates cached proxies in the background

Operators

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