| 1 |
<!-- xml added for dead-lock POC --> |
| 2 |
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../main/config/ehcache.xsd"> |
| 3 |
|
| 4 |
<diskStore path="java.io.tmpdir"/> |
| 5 |
|
| 6 |
<defaultCache timeToLiveSeconds="10" |
| 7 |
maxElementsInMemory="100" memoryStoreEvictionPolicy="LRU" overflowToDisk="false" eternal="false" /> |
| 8 |
|
| 9 |
<cache name="ACache" |
| 10 |
eternal="true" |
| 11 |
maxElementsInMemory="50" |
| 12 |
overflowToDisk="false"> |
| 13 |
<cacheLoaderFactory class="net.sf.ehcache.loader.ComponentALoader" properties="createDeadLock=true"/> |
| 14 |
</cache> |
| 15 |
|
| 16 |
<cache name="BCache" |
| 17 |
eternal="true" |
| 18 |
maxElementsInMemory="100" |
| 19 |
overflowToDisk="false"> |
| 20 |
<cacheLoaderFactory class="net.sf.ehcache.loader.ComponentBLoader"/> |
| 21 |
</cache> |
| 22 |
|
| 23 |
<cache name="CCache" |
| 24 |
eternal="false" |
| 25 |
maxElementsInMemory="50" |
| 26 |
timeToLiveSeconds="1" |
| 27 |
overflowToDisk="false"> |
| 28 |
<cacheLoaderFactory class="net.sf.ehcache.loader.ComponentCLoader"/> |
| 29 |
</cache> |
| 30 |
|
| 31 |
<cache name="NullLoaderFirstCache" |
| 32 |
eternal="true" |
| 33 |
maxElementsInMemory="100" |
| 34 |
overflowToDisk="false"> |
| 35 |
<cacheLoaderFactory class="net.sf.ehcache.loader.NullCountingCacheLoaderFactory"/> |
| 36 |
<cacheLoaderFactory class="net.sf.ehcache.loader.CountingCacheLoaderFactory"/> |
| 37 |
</cache> |
| 38 |
|
| 39 |
<cache name="NullLoaderTwiceCache" |
| 40 |
eternal="true" |
| 41 |
maxElementsInMemory="100" |
| 42 |
overflowToDisk="false"> |
| 43 |
<cacheLoaderFactory class="net.sf.ehcache.loader.NullCountingCacheLoaderFactory"/> |
| 44 |
<cacheLoaderFactory class="net.sf.ehcache.loader.NullCountingCacheLoaderFactory"/> |
| 45 |
</cache> |
| 46 |
|
| 47 |
<cache name="NullLoaderLastCache" |
| 48 |
eternal="true" |
| 49 |
maxElementsInMemory="100" |
| 50 |
overflowToDisk="false"> |
| 51 |
<cacheLoaderFactory class="net.sf.ehcache.loader.CountingCacheLoaderFactory"/> |
| 52 |
<cacheLoaderFactory class="net.sf.ehcache.loader.NullCountingCacheLoaderFactory"/> |
| 53 |
</cache> |
| 54 |
|
| 55 |
|
| 56 |
</ehcache> |