Class ConcurrentStatefulPrivacyContextPool
-
- All Implemented Interfaces:
public final class ConcurrentStatefulPrivacyContextPool
-
-
Field Summary
Fields Modifier and Type Field Description private final Map<BrowserProfile, PrivacyContext>permanentContextsprivate final Map<BrowserProfile, PrivacyContext>temporaryContextsprivate final Deque<PrivacyContext>zombieContextsprivate final Deque<PrivacyContext>deadContextsprivate final <Error class: unknown class>activeContextsprivate final IntegeractiveContextCountprivate final ProxyPoolManagerproxyPoolManagerprivate final WebDriverPoolManagerdriverPoolManagerprivate final CoreMetricscoreMetricsprivate final ImmutableConfigconfprivate final IntegerallowedPrivacyContextCount
-
Constructor Summary
Constructors Constructor Description ConcurrentStatefulPrivacyContextPool(ProxyPoolManager proxyPoolManager, WebDriverPoolManager driverPoolManager, CoreMetrics coreMetrics, ImmutableConfig conf, Integer allowedPrivacyContextCount)
-
Method Summary
Modifier and Type Method Description final Map<BrowserProfile, PrivacyContext>getPermanentContexts()final Map<BrowserProfile, PrivacyContext>getTemporaryContexts()final Deque<PrivacyContext>getZombieContexts()final Deque<PrivacyContext>getDeadContexts()final <Error class: unknown class>getActiveContexts()final IntegergetActiveContextCount()final ProxyPoolManagergetProxyPoolManager()final WebDriverPoolManagergetDriverPoolManager()final CoreMetricsgetCoreMetrics()final ImmutableConfiggetConf()final IntegergetAllowedPrivacyContextCount()final PrivacyContextcomputeIfAbsent(BrowserProfile profile)final BrowserPrivacyContextcreateUnmanagedContext(BrowserProfile profile)Create a privacy context who is not added to the context list yet. final UnitcloseDyingContexts()Close the zombie contexts, and the resources release immediately. final Unitclose(PrivacyContext privacyContext)-
-
Constructor Detail
-
ConcurrentStatefulPrivacyContextPool
ConcurrentStatefulPrivacyContextPool(ProxyPoolManager proxyPoolManager, WebDriverPoolManager driverPoolManager, CoreMetrics coreMetrics, ImmutableConfig conf, Integer allowedPrivacyContextCount)
-
-
Method Detail
-
getPermanentContexts
final Map<BrowserProfile, PrivacyContext> getPermanentContexts()
-
getTemporaryContexts
final Map<BrowserProfile, PrivacyContext> getTemporaryContexts()
-
getZombieContexts
final Deque<PrivacyContext> getZombieContexts()
-
getDeadContexts
final Deque<PrivacyContext> getDeadContexts()
-
getActiveContexts
@Synchronized() final <Error class: unknown class> getActiveContexts()
-
getActiveContextCount
@Synchronized() final Integer getActiveContextCount()
-
getProxyPoolManager
final ProxyPoolManager getProxyPoolManager()
-
getDriverPoolManager
final WebDriverPoolManager getDriverPoolManager()
-
getCoreMetrics
final CoreMetrics getCoreMetrics()
-
getConf
final ImmutableConfig getConf()
-
getAllowedPrivacyContextCount
final Integer getAllowedPrivacyContextCount()
-
computeIfAbsent
final PrivacyContext computeIfAbsent(BrowserProfile profile)
-
createUnmanagedContext
final BrowserPrivacyContext createUnmanagedContext(BrowserProfile profile)
Create a privacy context who is not added to the context list yet.
-
closeDyingContexts
@Synchronized() final Unit closeDyingContexts()
Close the zombie contexts, and the resources release immediately.
-
close
@Synchronized() final Unit close(PrivacyContext privacyContext)
-
-
-
-