-
- All Implemented Interfaces:
-
java.lang.AutoCloseable
public final class MultiPrivacyContextManager extends PrivacyManager
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classMultiPrivacyContextManager.Metrics
-
Field Summary
Fields Modifier and Type Field Description private final IntegermaxAllowedBadContextsprivate final <ERROR CLASS>numBadContextsprivate final MultiPrivacyContextManager.Metricsmetricsprivate final WebDriverPoolManagerdriverPoolManagerprivate final ProxyPoolManagerproxyPoolManagerprivate final CoreMetricscoreMetricsprivate final ConcurrentHashMap<PrivacyContextId, PrivacyContext>activeContextsprivate final ImmutableConfigconfprivate final BooleanisActiveprivate final PrivacyContextIdGeneratorprivacyContextIdGeneratorprivate final ConcurrentLinkedDeque<PrivacyContext>zombieContexts
-
Constructor Summary
Constructors Constructor Description MultiPrivacyContextManager(WebDriverPoolManager driverPoolManager, ProxyPoolManager proxyPoolManager, CoreMetrics coreMetrics, ImmutableConfig immutableConfig)
-
Method Summary
Modifier and Type Method Description final IntegergetMaxAllowedBadContexts()final <ERROR CLASS>getNumBadContexts()final MultiPrivacyContextManager.MetricsgetMetrics()final WebDriverPoolManagergetDriverPoolManager()final ProxyPoolManagergetProxyPoolManager()final CoreMetricsgetCoreMetrics()final ConcurrentHashMap<PrivacyContextId, PrivacyContext>getActiveContexts()final ImmutableConfiggetConf()final BooleangetIsActive()PrivacyContextIdGeneratorgetPrivacyContextIdGenerator()final ConcurrentLinkedDeque<PrivacyContext>getZombieContexts()FetchResultrun(FetchTask task, SuspendFunction2<FetchTask, WebDriver, FetchResult> fetchFun)BrowserPrivacyContextcreateUnmanagedContext(PrivacyContextId id)PrivacyContextcomputeNextContext(Fingerprint fingerprint)PrivacyContextcomputeIfNecessary(Fingerprint fingerprint)PrivacyContextcomputeIfAbsent(PrivacyContextId id)-
-
Constructor Detail
-
MultiPrivacyContextManager
MultiPrivacyContextManager(WebDriverPoolManager driverPoolManager, ProxyPoolManager proxyPoolManager, CoreMetrics coreMetrics, ImmutableConfig immutableConfig)
-
-
Method Detail
-
getMaxAllowedBadContexts
final Integer getMaxAllowedBadContexts()
-
getNumBadContexts
final <ERROR CLASS> getNumBadContexts()
-
getMetrics
final MultiPrivacyContextManager.Metrics getMetrics()
-
getDriverPoolManager
final WebDriverPoolManager getDriverPoolManager()
-
getProxyPoolManager
final ProxyPoolManager getProxyPoolManager()
-
getCoreMetrics
final CoreMetrics getCoreMetrics()
-
getActiveContexts
final ConcurrentHashMap<PrivacyContextId, PrivacyContext> getActiveContexts()
-
getConf
final ImmutableConfig getConf()
-
getIsActive
final Boolean getIsActive()
-
getPrivacyContextIdGenerator
PrivacyContextIdGenerator getPrivacyContextIdGenerator()
-
getZombieContexts
final ConcurrentLinkedDeque<PrivacyContext> getZombieContexts()
-
run
FetchResult run(FetchTask task, SuspendFunction2<FetchTask, WebDriver, FetchResult> fetchFun)
-
createUnmanagedContext
BrowserPrivacyContext createUnmanagedContext(PrivacyContextId id)
-
computeNextContext
PrivacyContext computeNextContext(Fingerprint fingerprint)
-
computeIfNecessary
PrivacyContext computeIfNecessary(Fingerprint fingerprint)
-
computeIfAbsent
PrivacyContext computeIfAbsent(PrivacyContextId id)
-
-
-
-