public static Config newConfig(Object storeImpl, int writeDelaySeconds) {
return newConfig("default", storeImpl, writeDelaySeconds);
}
public static Config newConfig(String mapName, Object storeImpl, int writeDelaySeconds) {
XmlConfigBuilder configBuilder = new XmlConfigBuilder();
Config config = configBuilder.build();
MapConfig mapConfig = config.getMapConfig(mapName);
MapStoreConfig mapStoreConfig = new MapStoreConfig();
mapStoreConfig.setImplementation(storeImpl);
mapStoreConfig.setWriteDelaySeconds(writeDelaySeconds);
mapConfig.setMapStoreConfig(mapStoreConfig);