Debian Codegraph @

src/test/resources/ehcache-listener-scope.xml

raw
1 <ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2 xsi:noNamespaceSchemaLocation="../../main/config/ehcache.xsd"
3 name="listeners">
4
5 <defaultCache
6 maxElementsInMemory="10"
7 eternal="false"
8 timeToIdleSeconds="5"
9 timeToLiveSeconds="10"
10 overflowToDisk="false"
11 />
12
13 <cache name="listenDefault"
14 maxElementsInMemory="10000"
15 eternal="false"
16 timeToIdleSeconds="360"
17 timeToLiveSeconds="1000"
18 overflowToDisk="false">
19
20 <cacheEventListenerFactory
21 class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"/>
22 </cache>
23
24 <cache name="listenAll"
25 maxElementsInMemory="1000"
26 eternal="true"
27 timeToIdleSeconds="0"
28 timeToLiveSeconds="0"
29 overflowToDisk="false">
30
31 <cacheEventListenerFactory
32 class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" listenFor="all"/>
33 </cache>
34
35 <cache name="listenLocal"
36 maxElementsInMemory="1000"
37 eternal="true"
38 timeToIdleSeconds="0"
39 timeToLiveSeconds="0"
40 overflowToDisk="false">
41
42 <cacheEventListenerFactory
43 class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" listenFor="local"/>
44 </cache>
45
46 <cache name="listenRemote"
47 maxElementsInMemory="1000"
48 eternal="true"
49 timeToIdleSeconds="0"
50 timeToLiveSeconds="0"
51 overflowToDisk="false">
52
53 <cacheEventListenerFactory
54 class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" listenFor="remote"/>
55 </cache>
56
57 </ehcache>