HHH-10416 Drop superfluous immutable-entity cache configuration. Default to entity cache configuration if undefined.

This commit is contained in:
Paul Ferraro 2016-01-05 17:02:16 -05:00 committed by Steve Ebersole
parent 13a169c599
commit 3aef8de87d
2 changed files with 1 additions and 14 deletions

View File

@ -190,11 +190,6 @@ public class InfinispanRegionFactory implements RegionFactory {
*/
public static final String DEF_ENTITY_RESOURCE = "entity";
/**
* Default value for {@link #IMMUTABLE_ENTITY_CACHE_RESOURCE_PROP}.
*/
public static final String DEF_IMMUTABLE_ENTITY_RESOURCE = "immutable-entity";
/**
* Default value for {@link #TIMESTAMPS_CACHE_RESOURCE_PROP}.
*/
@ -522,7 +517,7 @@ public class InfinispanRegionFactory implements RegionFactory {
entityOverrides.setCacheName( DEF_ENTITY_RESOURCE );
typeOverrides.put( ENTITY_KEY, entityOverrides );
final TypeOverrides immutableEntityOverrides = new TypeOverrides();
immutableEntityOverrides.setCacheName( DEF_IMMUTABLE_ENTITY_RESOURCE );
immutableEntityOverrides.setCacheName( DEF_ENTITY_RESOURCE );
typeOverrides.put( IMMUTABLE_ENTITY_KEY, immutableEntityOverrides );
final TypeOverrides collectionOverrides = new TypeOverrides();
collectionOverrides.setCacheName( DEF_ENTITY_RESOURCE );

View File

@ -26,14 +26,6 @@
<expiration max-idle="100000" interval="5000"/>
</invalidation-cache-configuration>
<!-- Default configuration for immutable entities -->
<invalidation-cache-configuration name="immutable-entity" mode="SYNC" remote-timeout="20000">
<locking concurrency-level="1000" acquire-timeout="15000"/>
<transaction mode="NONE"/>
<eviction max-entries="10000" strategy="LRU"/>
<expiration max-idle="100000" interval="5000"/>
</invalidation-cache-configuration>
<!-- A config appropriate for query caching. Does not replicate queries. -->
<local-cache-configuration name="local-query">
<locking concurrency-level="1000" acquire-timeout="15000"/>