private DistributedObjectCache createDistributedObjectCache ( CacheConfig config ) { final String methodName = "createDistributedObjectCache()" ; if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , methodName + " cacheName=" + ( config != null ? config . getCacheName ( ) : "null" ) ) ; DCache dCache = ServerCache . createCache ( config . getCacheName ( ) , config ) ; config . setCache ( dCache ) ; DistributedObjectCache distributedObjectCache = null ; if ( config . isEnableNioSupport ( ) ) { distributedObjectCache = new DistributedNioMapImpl ( dCache ) ; } else { distributedObjectCache = new DistributedMapImpl ( dCache ) ; } if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , methodName + " distributedObjectCache=" + distributedObjectCache ) ; return distributedObjectCache ; }
Create a DistributedObjectCache from a cacheConfig object .