Package com.gemstone.gemfire.cache

Examples of com.gemstone.gemfire.cache.CacheFactory.create()


      if (topology != null && topology.equals(TOPOLOGY_P2P_VALUE)) {
        CacheFactory cf = new CacheFactory();
        if (locatorStr != null) {
          cf.set("locators", locatorStr);
        }
        cache = cf.create();
        isClient = false;
        return;
      }
    }
    isClient = true;
View Full Code Here


        new DefaultConversionService());

    CacheFactory factory = new CacheFactory();
    factory.setPdxSerializer(serializer);
    factory.setPdxPersistent(true);
    cache = factory.create();

    RegionFactory<Object, Object> regionFactory = cache.createRegionFactory();
    regionFactory.setDataPolicy(DataPolicy.PERSISTENT_REPLICATE);
    region = regionFactory.create("foo");
  }
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.