-
- All Implemented Interfaces:
-
java.lang.AutoCloseable
public final class BasicPrivacyContextManager extends PrivacyManager
-
-
Field Summary
Fields Modifier and Type Field Description private final WebDriverPoolManagerdriverPoolManagerprivate final ProxyPoolManagerproxyPoolManagerprivate final CoreMetricscoreMetricsprivate final ConcurrentHashMap<PrivacyAgent, PrivacyContext>activeContextsprivate final ImmutableConfigconfprivate final BooleanisActiveprivate final BooleanisClosedprivate final PrivacyContextIdGeneratorprivacyContextIdGeneratorprivate final ConcurrentLinkedDeque<PrivacyContext>zombieContexts
-
Constructor Summary
Constructors Constructor Description BasicPrivacyContextManager(WebDriverPoolManager driverPoolManager, ImmutableConfig config)BasicPrivacyContextManager(WebDriverPoolManager driverPoolManager, ProxyPoolManager proxyPoolManager, CoreMetrics coreMetrics, ImmutableConfig config)
-
Method Summary
Modifier and Type Method Description final WebDriverPoolManagergetDriverPoolManager()final ProxyPoolManagergetProxyPoolManager()final CoreMetricsgetCoreMetrics()final ConcurrentHashMap<PrivacyAgent, PrivacyContext>getActiveContexts()final ImmutableConfiggetConf()final BooleangetIsActive()final BooleangetIsClosed()PrivacyContextIdGeneratorgetPrivacyContextIdGenerator()final ConcurrentLinkedDeque<PrivacyContext>getZombieContexts()FetchResultrun(FetchTask task, SuspendFunction2<FetchTask, WebDriver, FetchResult> fetchFun)BrowserPrivacyContextcreateUnmanagedContext(PrivacyAgent id)PrivacyContextcomputeNextContext(Fingerprint fingerprint)PrivacyContextcomputeIfNecessary(Fingerprint fingerprint)PrivacyContextcomputeIfAbsent(PrivacyAgent id)-
-
Constructor Detail
-
BasicPrivacyContextManager
BasicPrivacyContextManager(WebDriverPoolManager driverPoolManager, ImmutableConfig config)
-
BasicPrivacyContextManager
BasicPrivacyContextManager(WebDriverPoolManager driverPoolManager, ProxyPoolManager proxyPoolManager, CoreMetrics coreMetrics, ImmutableConfig config)
-
-
Method Detail
-
getDriverPoolManager
final WebDriverPoolManager getDriverPoolManager()
-
getProxyPoolManager
final ProxyPoolManager getProxyPoolManager()
-
getCoreMetrics
final CoreMetrics getCoreMetrics()
-
getActiveContexts
final ConcurrentHashMap<PrivacyAgent, PrivacyContext> getActiveContexts()
-
getConf
final ImmutableConfig getConf()
-
getIsActive
final Boolean getIsActive()
-
getIsClosed
final Boolean getIsClosed()
-
getPrivacyContextIdGenerator
PrivacyContextIdGenerator getPrivacyContextIdGenerator()
-
getZombieContexts
final ConcurrentLinkedDeque<PrivacyContext> getZombieContexts()
-
run
FetchResult run(FetchTask task, SuspendFunction2<FetchTask, WebDriver, FetchResult> fetchFun)
-
createUnmanagedContext
BrowserPrivacyContext createUnmanagedContext(PrivacyAgent id)
-
computeNextContext
PrivacyContext computeNextContext(Fingerprint fingerprint)
-
computeIfNecessary
PrivacyContext computeIfNecessary(Fingerprint fingerprint)
-
computeIfAbsent
PrivacyContext computeIfAbsent(PrivacyAgent id)
-
-
-
-