Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Renamed Proxies class

...

poolFactory.setSocketFactory(ProxiesProxySocketFactories.sni("proxyHostname", 443));

...

PoolFactory {  

/**
* Set the socket factory used by this pool to create connections to both locators (if
* configured using {@link #addLocator(String, int)}) and servers.
*
* see {@link SocketFactory}
* See {@link ProxiesProxySocketFactories}
*
* @param socketFactory The {@link SocketFactory} to use
* @return a reference to <code> this </code>
* @since Geode 1.13
*/
PoolFactory setSocketFactory(SocketFactory socketFactory);
}
 
ClientCacheFactory {
  /**
   * (see description of PoolFactory above)
   */
  setPoolSocketFactory(SocketFactory socketFactory)
}

...

Code Block
package org.apache.geode.cache.client.proxy;

public class SniSocketFactory implements SocketFactory {
  public SniSocketFactory(String hostname, int port) {
  ...
}
 
public class ProxiesProxySocketFactories {
   public static SocketFactory sni(String hostname, int port)  
}

...