public ConnectionFactoryImpl(ConnectionSource source, EndpointManager endpointManager,
InternalDistributedSystem sys, int socketBufferSize, int handshakeTimeout, int readTimeout,
ClientProxyMembershipID proxyId, CancelCriterion cancelCriterion, boolean usedByGateway,
GatewaySender sender, long pingInterval, boolean multiuserSecureMode, PoolImpl pool) {
this(
new ConnectionConnector(endpointManager, sys, socketBufferSize, handshakeTimeout,
readTimeout, cancelCriterion, usedByGateway, sender,
(usedByGateway || sender != null) ? SocketCreatorFactory
.getSocketCreatorForComponent(SecurableCommunicationChannel.GATEWAY)
: SocketCreatorFactory
.getSocketCreatorForComponent(SecurableCommunicationChannel.SERVER),
new ClientSideHandshakeImpl(proxyId, sys, sys.getSecurityService(),
multiuserSecureMode)),
source, pingInterval, pool, cancelCriterion);
}