protected NearCacheRecordStore<K, V> createNearCacheRecordStore(String name, NearCacheConfig nearCacheConfig) { InMemoryFormat inMemoryFormat = nearCacheConfig.getInMemoryFormat(); if (inMemoryFormat == null) { inMemoryFormat = DEFAULT_MEMORY_FORMAT; } switch (inMemoryFormat) { case BINARY: return new NearCacheDataRecordStore<K, V>(name, nearCacheConfig, serializationService, classLoader); case OBJECT: return new NearCacheObjectRecordStore<K, V>(name, nearCacheConfig, serializationService, classLoader); default: throw new IllegalArgumentException("Invalid in memory format: " + inMemoryFormat); } }
protected NearCacheRecordStore<K, V> createNearCacheRecordStore(String name, NearCacheConfig nearCacheConfig) { InMemoryFormat inMemoryFormat = nearCacheConfig.getInMemoryFormat(); if (inMemoryFormat == null) { inMemoryFormat = DEFAULT_MEMORY_FORMAT; } switch (inMemoryFormat) { case BINARY: return new NearCacheDataRecordStore<K, V>(name, nearCacheConfig, serializationService, classLoader); case OBJECT: return new NearCacheObjectRecordStore<K, V>(name, nearCacheConfig, serializationService, classLoader); default: throw new IllegalArgumentException("Invalid in memory format: " + inMemoryFormat); } }