use of com.hazelcast.internal.adapter.ICacheDataStructureAdapter in project hazelcast by hazelcast.
the class AbstractClientInternalCacheProxy method initNearCache.
void initNearCache() {
ClientConfig clientConfig = clientContext.getClientConfig();
NearCacheConfig nearCacheConfig = clientConfig.getNearCacheConfig(name);
if (nearCacheConfig != null) {
checkNearCacheConfig(nearCacheConfig, clientConfig.getNativeMemoryConfig());
cacheOnUpdate = isCacheOnUpdate(nearCacheConfig, nameWithPrefix, logger);
ICacheDataStructureAdapter<K, V> adapter = new ICacheDataStructureAdapter<K, V>(this);
nearCache = nearCacheManager.getOrCreateNearCache(nameWithPrefix, nearCacheConfig, adapter);
registerInvalidationListener();
}
}
Aggregations