use of org.apache.geode.internal.cache.tier.sockets.CacheClientUpdater in project geode by apache.
the class ConnectionFactoryImpl method createServerToClientConnection.
public ClientUpdater createServerToClientConnection(Endpoint endpoint, QueueManager qManager, boolean isPrimary, ClientUpdater failedUpdater) {
String clientUpdateName = CacheClientUpdater.CLIENT_UPDATER_THREAD_NAME + " on " + endpoint.getMemberId() + " port " + endpoint.getLocation().getPort();
if (logger.isDebugEnabled()) {
logger.debug("Establishing: {}", clientUpdateName);
}
// Launch the thread
CacheClientUpdater updater = new CacheClientUpdater(clientUpdateName, endpoint.getLocation(), isPrimary, ds, new HandShake(this.handshake), qManager, endpointManager, endpoint, handShakeTimeout, this.socketCreator);
if (!updater.isConnected()) {
return null;
}
updater.setFailedUpdater(failedUpdater);
updater.start();
// }
return updater;
}
Aggregations