@Deprecated public class SocketLock extends java.lang.Object implements java.io.Closeable, Lock
Lock via an implementation that uses a well-known
server socket.| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PORT
Deprecated.
|
| Constructor and Description |
|---|
SocketLock()
Deprecated.
Constructs a new SocketLock using the default port.
|
SocketLock(java.net.InetSocketAddress address)
Deprecated.
Constructs a new SocketLock.
|
SocketLock(int lockPort)
Deprecated.
Constructs a new SocketLock.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Deprecated.
|
int |
getLockPort()
Deprecated.
Gets the port number that is being-locked.
|
void |
lock(long timeoutInMillis)
Deprecated.
|
void |
unlock()
Deprecated.
|
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()