-
- All Implemented Interfaces:
-
java.lang.AutoCloseable
public class BrowserInstanceManager implements AutoCloseable
-
-
Field Summary
Fields Modifier and Type Field Description private final IntegerinstanceCountprivate final ImmutableConfigconf
-
Constructor Summary
Constructors Constructor Description BrowserInstanceManager(ImmutableConfig conf)
-
Method Summary
Modifier and Type Method Description final IntegergetInstanceCount()final ImmutableConfiggetConf()final BooleanhasLaunched(String userDataDir)final BrowserInstancelaunchIfAbsent(BrowserInstanceId instanceId, LauncherOptions launcherOptions, ChromeOptions launchOptions)final UnitcloseIfPresent(BrowserInstanceId instanceId)Unitclose()-
-
Method Detail
-
getInstanceCount
final Integer getInstanceCount()
-
getConf
final ImmutableConfig getConf()
-
hasLaunched
@Synchronized() final Boolean hasLaunched(String userDataDir)
-
launchIfAbsent
@Synchronized() final BrowserInstance launchIfAbsent(BrowserInstanceId instanceId, LauncherOptions launcherOptions, ChromeOptions launchOptions)
-
closeIfPresent
@Synchronized() final Unit closeIfPresent(BrowserInstanceId instanceId)
-
close
@Synchronized() Unit close()
-
-
-
-