-
public final class ConcurrentStatefulDriverPoolPoolA concurrent pool of loading driver pools whose states are tracked.
-
-
Field Summary
Fields Modifier and Type Field Description private final Map<BrowserId, LoadingWebDriverPool>workingDriverPoolsprivate final Map<BrowserId, LoadingWebDriverPool>retiredDriverPoolsprivate final Set<BrowserId>closedDriverPools
-
Constructor Summary
Constructors Constructor Description ConcurrentStatefulDriverPoolPool()
-
Method Summary
Modifier and Type Method Description final Map<BrowserId, LoadingWebDriverPool>getWorkingDriverPools()final Map<BrowserId, LoadingWebDriverPool>getRetiredDriverPools()final Set<BrowserId>getClosedDriverPools()final IntegerpromisedDriverCount(BrowserId browserId, Integer capacity)final BooleanisFullCapacity(BrowserId browserId)final WebDriversubscribeDriver(BrowserId browserId)final WebDriversubscribeDriver()final LoadingWebDriverPoolcomputeIfAbsent(BrowserId browserId, Function1<BrowserId, LoadingWebDriverPool> mappingFunction)final Unitretire(LoadingWebDriverPool driverPool)final LoadingWebDriverPoolretire(BrowserId browserId)final Unitclose(LoadingWebDriverPool driverPool)final Unitclose()-
-
Method Detail
-
getWorkingDriverPools
final Map<BrowserId, LoadingWebDriverPool> getWorkingDriverPools()
-
getRetiredDriverPools
final Map<BrowserId, LoadingWebDriverPool> getRetiredDriverPools()
-
getClosedDriverPools
final Set<BrowserId> getClosedDriverPools()
-
promisedDriverCount
@Synchronized() final Integer promisedDriverCount(BrowserId browserId, Integer capacity)
-
isFullCapacity
@Synchronized() final Boolean isFullCapacity(BrowserId browserId)
-
subscribeDriver
@Beta()@Synchronized() final WebDriver subscribeDriver(BrowserId browserId)
-
subscribeDriver
@Beta()@Synchronized() final WebDriver subscribeDriver()
-
computeIfAbsent
@Synchronized() final LoadingWebDriverPool computeIfAbsent(BrowserId browserId, Function1<BrowserId, LoadingWebDriverPool> mappingFunction)
-
retire
@Synchronized() final Unit retire(LoadingWebDriverPool driverPool)
-
retire
@Synchronized() final LoadingWebDriverPool retire(BrowserId browserId)
-
close
@Synchronized() final Unit close(LoadingWebDriverPool driverPool)
-
close
@Synchronized() final Unit close()
-
-
-
-