public class SocketLock extends Object implements Lock
Lock
via an implementation that uses a well-known
server socket.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.
|
public static final int DEFAULT_PORT
public SocketLock()
public SocketLock(int lockPort)
lockPort
- the port number to lockpublic SocketLock(InetSocketAddress address)
address
- The port to lock.public void lock(long timeoutInMillis) throws WebDriverException
lock
in interface Lock
WebDriverException
Copyright © 2013. All Rights Reserved.