PropertiesWrapper wrappedProperties = new PropertiesWrapper(properties);
connectTimeout =
wrappedProperties.getLongProperty(
"connectTimeout", DEFAULT_CONNECT_TIMEOUT);
// TODO only RELIABLE supported for now.
TransportType transportType = TransportType.RELIABLE;
SocketAddress socketAddress = new InetSocketAddress(host, port);
connector =
new SocketEndpoint(socketAddress, transportType).createConnector();
}