use of com.hazelcast.config.NearCacheConfig in project hazelcast by hazelcast.
the class InvalidationMemberAddRemoveTest method createNearCacheConfig.
protected NearCacheConfig createNearCacheConfig(String mapName) {
NearCacheConfig nearCacheConfig = newNearCacheConfig();
nearCacheConfig.setInvalidateOnChange(true);
nearCacheConfig.setName(mapName);
nearCacheConfig.getEvictionConfig().setSize(Integer.MAX_VALUE).setEvictionPolicy(EvictionPolicy.NONE);
return nearCacheConfig;
}
use of com.hazelcast.config.NearCacheConfig in project hazelcast by hazelcast.
the class MapInvalidationMetaDataMigrationTest method newConfig.
protected Config newConfig(String mapName) {
NearCacheConfig nearCacheConfig = new NearCacheConfig();
nearCacheConfig.setInMemoryFormat(getNearCacheInMemoryFormat());
nearCacheConfig.setName(mapName);
nearCacheConfig.setInvalidateOnChange(true);
nearCacheConfig.setCacheLocalEntries(true);
MapConfig mapConfig = new MapConfig(mapName);
mapConfig.setNearCacheConfig(nearCacheConfig);
mapConfig.setBackupCount(0).setAsyncBackupCount(0);
Config config = getConfig();
return config.addMapConfig(mapConfig);
}
use of com.hazelcast.config.NearCacheConfig in project hazelcast by hazelcast.
the class MemberMapRecordStateStressTest method newNearCacheConfig.
protected NearCacheConfig newNearCacheConfig() {
NearCacheConfig nearCacheConfig = new NearCacheConfig();
nearCacheConfig.setName(mapName);
nearCacheConfig.setInvalidateOnChange(true);
return nearCacheConfig;
}
use of com.hazelcast.config.NearCacheConfig in project hazelcast by hazelcast.
the class NearCacheLiteMemberTest method createConfig.
public static Config createConfig(String mapName, boolean liteMember) {
NearCacheConfig nearCacheConfig = new NearCacheConfig();
nearCacheConfig.setInvalidateOnChange(true);
Config config = new Config();
config.setLiteMember(liteMember);
config.getMapConfig(mapName).setNearCacheConfig(nearCacheConfig);
return config;
}
use of com.hazelcast.config.NearCacheConfig in project hazelcast by hazelcast.
the class NearCacheStaleReadTest method getNearCacheConfig.
protected NearCacheConfig getNearCacheConfig() {
NearCacheConfig nearCacheConfig = new NearCacheConfig();
// this enables caching of local entries
nearCacheConfig.setCacheLocalEntries(true);
nearCacheConfig.setInMemoryFormat(OBJECT);
return nearCacheConfig;
}
Aggregations