Package com.gemstone.gemfire.cache.client

Examples of com.gemstone.gemfire.cache.client.PoolFactory.addServer()


        }
      }

      if (!CollectionUtils.isEmpty(servers)) {
        for (InetSocketAddress connection : servers) {
          poolFactory.addServer(connection.getHostName(),
              connection.getPort());
        }
      }

      poolFactory.setFreeConnectionTimeout(freeConnectionTimeout);
View Full Code Here


    ClientCacheFactory ccf = new ClientCacheFactory(props);
    ccf.setPoolSubscriptionEnabled(true);
    cache = ccf.create();

    PoolFactory pf = PoolManager.createFactory();
    pf.addServer("localhost", 40404);
    pf.setSubscriptionEnabled(true);
    pool = pf.create("client");

    ClientRegionFactory<String, Integer> crf = cache.createClientRegionFactory(ClientRegionShortcut.PROXY);
    crf.setPoolName("client");
View Full Code Here

    ClientCacheFactory ccf = new ClientCacheFactory(props);
    ccf.setPoolSubscriptionEnabled(true);
    cache = ccf.create();

    PoolFactory pf = PoolManager.createFactory();
    pf.addServer("localhost", 40404);
    pf.setSubscriptionEnabled(true);
    pool = pf.create("client");

    ClientRegionFactory<String, Integer> crf = cache.createClientRegionFactory(ClientRegionShortcut.PROXY);
    crf.setPoolName("client");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.