public static void checkNearCacheConfig ( String mapName , NearCacheConfig nearCacheConfig , NativeMemoryConfig nativeMemoryConfig , boolean isClient ) { checkNotNativeWhenOpenSource ( nearCacheConfig . getInMemoryFormat ( ) ) ; checkLocalUpdatePolicy ( mapName , nearCacheConfig . getLocalUpdatePolicy ( ) ) ; checkEvictionConfig ( nearCacheConfig . getEvictionConfig ( ) , true ) ; checkOnHeapNearCacheMaxSizePolicy ( nearCacheConfig ) ; checkNearCacheNativeMemoryConfig ( nearCacheConfig . getInMemoryFormat ( ) , nativeMemoryConfig , getBuildInfo ( ) . isEnterprise ( ) ) ; if ( isClient && nearCacheConfig . isCacheLocalEntries ( ) ) { throw new IllegalArgumentException ( "The Near Cache option `cache-local-entries` is not supported in " + "client configurations." ) ; } checkPreloaderConfig ( nearCacheConfig , isClient ) ; }
Checks preconditions to create a map proxy with Near Cache .