-
- 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 Map<PrivacyAgent, PrivacyContext>activeContextsprivate final ImmutableConfigconfprivate final ObjectcontextLifeCycleMonitorprivate final BooleanisActiveprivate final BooleanisClosedprivate final ConcurrentHashMap<PrivacyAgent, PrivacyContext>permanentContextsprivate final PrivacyContextIdGeneratorprivacyContextIdGeneratorprivate final ConcurrentHashMap<PrivacyAgent, PrivacyContext>temporaryContextsprivate 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 Map<PrivacyAgent, PrivacyContext>getActiveContexts()final ImmutableConfiggetConf()final ObjectgetContextLifeCycleMonitor()final BooleangetIsActive()final BooleangetIsClosed()final ConcurrentHashMap<PrivacyAgent, PrivacyContext>getPermanentContexts()PrivacyContextIdGeneratorgetPrivacyContextIdGenerator()final ConcurrentHashMap<PrivacyAgent, PrivacyContext>getTemporaryContexts()final ConcurrentLinkedDeque<PrivacyContext>getZombieContexts()FetchResultrun(FetchTask task, SuspendFunction2<FetchTask, WebDriver, FetchResult> fetchFun)BrowserPrivacyContextcreateUnmanagedContext(PrivacyAgent privacyAgent)PrivacyContextcomputeNextContext(Fingerprint fingerprint)PrivacyContextcomputeNextContext(WebPage page, Fingerprint fingerprint, FetchTask task)PrivacyContextcomputeIfNecessary(Fingerprint fingerprint)PrivacyContextcomputeIfNecessary(WebPage page, Fingerprint fingerprint, FetchTask task)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 Map<PrivacyAgent, PrivacyContext> getActiveContexts()
-
getConf
final ImmutableConfig getConf()
-
getContextLifeCycleMonitor
final Object getContextLifeCycleMonitor()
-
getIsActive
final Boolean getIsActive()
-
getIsClosed
final Boolean getIsClosed()
-
getPermanentContexts
final ConcurrentHashMap<PrivacyAgent, PrivacyContext> getPermanentContexts()
-
getPrivacyContextIdGenerator
PrivacyContextIdGenerator getPrivacyContextIdGenerator()
-
getTemporaryContexts
final ConcurrentHashMap<PrivacyAgent, PrivacyContext> getTemporaryContexts()
-
getZombieContexts
final ConcurrentLinkedDeque<PrivacyContext> getZombieContexts()
-
run
FetchResult run(FetchTask task, SuspendFunction2<FetchTask, WebDriver, FetchResult> fetchFun)
-
createUnmanagedContext
BrowserPrivacyContext createUnmanagedContext(PrivacyAgent privacyAgent)
-
computeNextContext
@Deprecated(message = Use computeNextContext(task, fingerprint), replaceWith = @ReplaceWith(imports = {}, expression = computeNextContext(FetchTask, Fingerprint))) PrivacyContext computeNextContext(Fingerprint fingerprint)
-
computeNextContext
PrivacyContext computeNextContext(WebPage page, Fingerprint fingerprint, FetchTask task)
-
computeIfNecessary
@Deprecated(message = Use computeIfNecessary(task, fingerprint), replaceWith = @ReplaceWith(imports = {}, expression = computeIfNecessary(FetchTask, Fingerprint))) PrivacyContext computeIfNecessary(Fingerprint fingerprint)
-
computeIfNecessary
PrivacyContext computeIfNecessary(WebPage page, Fingerprint fingerprint, FetchTask task)
-
computeIfAbsent
PrivacyContext computeIfAbsent(PrivacyAgent id)
-
-
-
-