Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PORT |
Constructor and Description |
---|
SocketLock()
Constructs a new SocketLock using the default port.
|
SocketLock(InetSocketAddress address)
Constructs a new SocketLock.
|
SocketLock(int lockPort)
Constructs a new SocketLock.
|
Modifier and Type | Method and Description |
---|---|
int |
getLockPort()
Gets the port number that is being-locked.
|
void |
lock(long timeoutInMillis) |
void |
unlock() |
public static final int DEFAULT_PORT
public SocketLock()
public SocketLock(InetSocketAddress address)
address
- The port to lock.public SocketLock(int lockPort)
lockPort
- the port number to lockpublic int getLockPort()
public void lock(long timeoutInMillis) throws WebDriverException
lock
in interface Lock
WebDriverException
Copyright © 2014-2017 Machine Publishers, LLC and the jBrowserDriver contributors.
Project homepage: https://github.com/machinepublishers/jbrowserdriver