public class SocketServerConnectionFactory extends Object implements ServerConnectionFactory, SocketServerInstanceFactory
Constructor and Description |
---|
SocketServerConnectionFactory() |
Modifier and Type | Method and Description |
---|---|
SocketServerConnection |
getConnection(Properties connectionProperties)
Establish a connection to the server.
|
static SocketServerConnectionFactory |
getInstance() |
SocketServerInstance |
getServerInstance(HostInfo info) |
long |
getSynchronousTtl() |
void |
initialize(Properties info) |
String |
resolveHostname(InetAddress addr) |
void |
setSynchronousTtl(long synchronousTTL) |
public static SocketServerConnectionFactory getInstance()
public void initialize(Properties info)
public SocketServerInstance getServerInstance(HostInfo info) throws CommunicationException, IOException
getServerInstance
in interface SocketServerInstanceFactory
CommunicationException
IOException
public SocketServerConnection getConnection(Properties connectionProperties) throws CommunicationException, ConnectionException
ServerConnectionFactory
getConnection
in interface ServerConnectionFactory
connectionProperties
- will be updated with additional information before logonCommunicationException
- If an error occurs in connecting, typically due to
problems with the connection properties (bad user name, bad password, bad host name, etc)ConnectionException
- If an error occurs communicating between client and serverpublic long getSynchronousTtl()
public void setSynchronousTtl(long synchronousTTL)
public String resolveHostname(InetAddress addr)
resolveHostname
in interface HostnameResolver
Copyright © 2019. All rights reserved.