public final class ClientDriverFactory extends Object
| Constructor and Description |
|---|
ClientDriverFactory() |
| Modifier and Type | Method and Description |
|---|---|
ClientDriver |
createClientDriver()
Factory method to create and start a
ClientDriver. |
ClientDriver |
createClientDriver(int port)
Factory method to create and start a
ClientDriver on a specific port. |
public ClientDriver createClientDriver()
ClientDriver. A port will be chosen automatically.ClientDriver, which has found a free port, bound to it and started up.public ClientDriver createClientDriver(int port)
ClientDriver on a specific port. This is absolutely not the recommended
way to use the client driver. The no-arg method will choose a free port, use of this method will fail if the port is not free.port - The port to listen on. If this port is not available a runtime exception will be thrown.ClientDriver, which has found a free port, bound to it and started up.Copyright © 2016. All Rights Reserved.