public class ConsoleConnectionFactory extends Object
ConsoleConnection
instances.Modifier | Constructor and Description |
---|---|
|
ConsoleConnectionFactory()
Constructor.
|
protected |
ConsoleConnectionFactory(ScheduledExecutorService executor)
Constructor.
|
public ConsoleConnectionFactory()
protected ConsoleConnectionFactory(ScheduledExecutorService executor)
executor
- Scheduled executor used to send keep alive messages.public ConsoleConnection connect(String host, int port) throws ConsoleConnectionException
ConsoleConnection
.host
- Console host.port
- Console port.ConsoleConnection
.ConsoleConnectionException
- Failed to establish a connection.Copyright © 2000-2014. All Rights Reserved.