use of com.hazelcast.internal.adapter.TransactionalMapDataStructureAdapter in project hazelcast by hazelcast.
the class TxnMapNearCacheLeakTest method createContext.
@Override
protected <K, V> NearCacheTestContext<K, V, Data, String> createContext() {
Config config = getConfig(false);
HazelcastInstance dataInstance = hazelcastFactory.newHazelcastInstance(config);
TransactionalMapDataStructureAdapter<K, V> dataAdapter = new TransactionalMapDataStructureAdapter<K, V>(dataInstance, DEFAULT_NEAR_CACHE_NAME);
NearCacheTestContextBuilder<K, V, Data, String> builder = createNearCacheContextBuilder();
return builder.setDataInstance(dataInstance).setDataAdapter(dataAdapter).build();
}
use of com.hazelcast.internal.adapter.TransactionalMapDataStructureAdapter in project hazelcast by hazelcast.
the class TxnMapNearCacheBasicTest method createContext.
@Override
protected <K, V> NearCacheTestContext<K, V, Data, String> createContext(boolean loaderEnabled) {
Config config = getConfig(false);
HazelcastInstance dataInstance = hazelcastFactory.newHazelcastInstance(config);
TransactionalMapDataStructureAdapter<K, V> dataAdapter = new TransactionalMapDataStructureAdapter<K, V>(dataInstance, DEFAULT_NEAR_CACHE_NAME);
NearCacheTestContextBuilder<K, V, Data, String> builder = createNearCacheContextBuilder();
return builder.setDataInstance(dataInstance).setDataAdapter(dataAdapter).build();
}
use of com.hazelcast.internal.adapter.TransactionalMapDataStructureAdapter in project hazelcast by hazelcast.
the class TxnMapNearCacheLeakTest method createNearCacheContextBuilder.
private <K, V> NearCacheTestContextBuilder<K, V, Data, String> createNearCacheContextBuilder() {
Config configWithNearCache = getConfig(true);
HazelcastInstance nearCacheInstance = hazelcastFactory.newHazelcastInstance(configWithNearCache);
nearCacheInstance.getMap(DEFAULT_NEAR_CACHE_NAME);
NearCacheManager nearCacheManager = getMapNearCacheManager(nearCacheInstance);
NearCache<Data, String> nearCache = nearCacheManager.getNearCache(DEFAULT_NEAR_CACHE_NAME);
RepairingTask repairingTask = ((MapNearCacheManager) nearCacheManager).getRepairingTask();
return new NearCacheTestContextBuilder<K, V, Data, String>(nearCacheConfig, getSerializationService(nearCacheInstance)).setNearCacheInstance(nearCacheInstance).setNearCacheAdapter(new TransactionalMapDataStructureAdapter<K, V>(nearCacheInstance, DEFAULT_NEAR_CACHE_NAME)).setNearCache(nearCache).setNearCacheManager(nearCacheManager).setRepairingTask(repairingTask);
}
use of com.hazelcast.internal.adapter.TransactionalMapDataStructureAdapter in project hazelcast by hazelcast.
the class TxnMapNearCacheSerializationCountTest method createContext.
@Override
protected <K, V> NearCacheTestContext<K, V, Data, String> createContext() {
HazelcastInstance dataMember = hazelcastFactory.newHazelcastInstance(getConfig(false));
NearCacheTestContextBuilder<K, V, Data, String> builder = createNearCacheContextBuilder();
return builder.setDataInstance(dataMember).setDataAdapter(new TransactionalMapDataStructureAdapter<K, V>(dataMember, DEFAULT_NEAR_CACHE_NAME)).build();
}
Aggregations