| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PORT |
| Constructor and Description |
|---|
SocketLock()
Constructs a new SocketLock using the default port.
|
SocketLock(java.net.InetSocketAddress address)
Constructs a new SocketLock.
|
SocketLock(int lockPort)
Constructs a new SocketLock.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
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(int lockPort)
lockPort - the port number to lockpublic SocketLock(java.net.InetSocketAddress address)
address - The port to lock.public void lock(long timeoutInMillis)
throws WebDriverException
lock in interface LockWebDriverExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic int getLockPort()