Object ProxyContext.Companion
-
- All Implemented Interfaces:
public class ProxyContext.Companion
-
-
Field Summary
Fields Modifier and Type Field Description private final AtomicIntegernumProxyAbsenceprivate InstantlastProxyAbsentTimeprivate final AtomicIntegernumRunningTasksprivate IntegermaxAllowedProxyAbsencepublic final static ProxyContext.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final ProxyContextcreate(WebDriverContext driverContext, ProxyPoolManager proxyPoolManager)Create a proxy context for the given driver context. final UnitcheckProxyAbsence()final AtomicIntegergetNumProxyAbsence()final InstantgetLastProxyAbsentTime()final UnitsetLastProxyAbsentTime(Instant lastProxyAbsentTime)final AtomicIntegergetNumRunningTasks()final IntegergetMaxAllowedProxyAbsence()final UnitsetMaxAllowedProxyAbsence(Integer maxAllowedProxyAbsence)-
-
Method Detail
-
create
final ProxyContext create(WebDriverContext driverContext, ProxyPoolManager proxyPoolManager)
Create a proxy context for the given driver context.
Proxy order:
the proxy in the config file under context directory
the proxy in AppPaths.ENABLED_PROXY_DIR
the proxy loaded from the provider, the provider is configured in AppPaths.AVAILABLE_PROXY_DIR
-
checkProxyAbsence
final Unit checkProxyAbsence()
-
getNumProxyAbsence
final AtomicInteger getNumProxyAbsence()
-
getLastProxyAbsentTime
final Instant getLastProxyAbsentTime()
-
setLastProxyAbsentTime
final Unit setLastProxyAbsentTime(Instant lastProxyAbsentTime)
-
getNumRunningTasks
final AtomicInteger getNumRunningTasks()
-
getMaxAllowedProxyAbsence
final Integer getMaxAllowedProxyAbsence()
-
setMaxAllowedProxyAbsence
final Unit setMaxAllowedProxyAbsence(Integer maxAllowedProxyAbsence)
-
-
-
-