Search in sources :

Example 1 with ICacheDataStructureAdapter

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();
    }
}
Also used : ICacheDataStructureAdapter(com.hazelcast.internal.adapter.ICacheDataStructureAdapter) NearCacheConfig(com.hazelcast.config.NearCacheConfig) ClientConfig(com.hazelcast.client.config.ClientConfig)

Aggregations

ClientConfig (com.hazelcast.client.config.ClientConfig)1 NearCacheConfig (com.hazelcast.config.NearCacheConfig)1 ICacheDataStructureAdapter (com.hazelcast.internal.adapter.ICacheDataStructureAdapter)1