Debian Codegraph @

src/test/perfResources/ehcache-distributed5.xml

raw
1 <ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../main/config/ehcache.xsd">
2
3
4 <!-- Sets the path to the directory where cache .data files are created.
5
6 If the path is a Java System Property it is replaced by
7 its value in the running VM. Subdirectories can be specified below the property e.g. java.io.tmpdir/one
8
9 The following properties are translated:
10 user.home - User's home directory
11 user.dir - User's current working directory
12 java.io.tmpdir - Default temp file path -->
13 <diskStore path="user.dir/target/diskStore/five"/>
14
15
16 <!--
17 Specifies a CacheManagerEventListenerFactory which will be used to create a CacheManagerPeerProvider, which
18 is notified when Caches are added or removed from the CacheManager.
19
20 The attributes of CacheManagerEventListenerFactory are:
21 - class - a fully qualified factory class name
22 - properties - comma separated properties having meaning only to the factory.
23
24 Sets the fully qualified class name to be registered as the CacheManager event listener.
25
26 The events include:
27 - adding a Cache
28 - removing a Cache
29
30 Callbacks to listener methods are synchronous and unsynchronized. It is the responsibility of the implementer
31 to safely handle the potential performance and thread safety issues depending on what their listener is doing.
32
33 If no class is specified, no listener is created. There is no default.
34 -->
35 <!--
36 <cacheManagerEventListenerFactory class="net.sf.ehcache.event.TestCacheManagerEventListenerFactory"
37 properties="type=counting"/>
38 -->
39
40
41 <!--
42 How a CacheManager, which is part of a cluster, can find other peers.
43 There are two peer providers so far:
44
45 net.sf.ehcache.distribution.MulticastRMIManagerPeerProviderrovider
46 net.sf.ehcache.distribution.RMIManagerPeerProviderrovider
47
48 class - The fully qualified class name of the provider
49 properties - Properties to be interpreted by the factory
50 -->
51 <cacheManagerPeerProviderFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
52 properties="peerDiscovery=automatic, multicastGroupAddress=230.0.0.1, multicastGroupPort=4446, timeToLive=0"/>
53
54
55 <!--
56 (Enable for distributed operation)
57
58 Specifies a CacheManagerPeerListenerFactory which will be used to create a CacheManagerPeerListener, which
59 listens for messages from cache replicators participating in the cluster.
60
61 The attributes of cacheManagerPeerListenerFactory are:
62 - class - a fully qualified factory class name
63 - properties - comma separated properties having meaning only to the factory.
64
65 Ehcache comes with a built-in RMI-based distribution system. The listener component is RMICacheManagerPeerListener
66 which is configured using RMICacheManagerPeerListenerFactory. It is configured as per the following example:
67
68 <cacheManagerPeerListenerFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"
69 properties="hostName=localhost, port=5011, socketTimeoutMillis=2000"/>
70
71 Valid properties are:
72 - hostName (optional) - the hostName of the host the listener is running on. Specify where the host is multihomed
73 and you want to control the interface over which cluster messages are received.
74 - port (mandatory) - the port the listener listens on.
75 - socketTimeoutMillis - the number of seconds client sockets will wait when sending messages to this listener
76 until they give up. By default this is 120s.
77
78
79 -->
80 <cacheManagerPeerListenerFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"
81 properties="hostName=, socketTimeoutMillis=120000"/>
82
83
84 <!--Default Cache configuration. These will applied to caches programmatically created through
85 the CacheManager.
86
87 The following attributes are required:
88
89 maxElementsInMemory - Sets the maximum number of objects that will be created in memory
90 eternal - Sets whether elements are eternal. If eternal, timeouts are ignored and the
91 element is never expired.
92 overflowToDisk - Sets whether elements can overflow to disk when the in-memory cache
93 has reached the maxInMemory limit.
94
95 The following attributes are optional:
96 timeToIdleSeconds - Sets the time to idle for an element before it expires.
97 i.e. The maximum amount of time between accesses before an element expires
98 Is only used if the element is not eternal.
99 Optional attribute. A value of 0 means that an Element can idle for infinity.
100 The default value is 0.
101 timeToLiveSeconds - Sets the time to live for an element before it expires.
102 i.e. The maximum time between creation time and when an element expires.
103 Is only used if the element is not eternal.
104 Optional attribute. A value of 0 means that and Element can live for infinity.
105 The default value is 0.
106 diskPersistent - Whether the disk store persists between restarts of the Virtual Machine.
107 The default value is false.
108 diskExpiryThreadIntervalSeconds- The number of seconds between runs of the disk expiry thread. The default value
109 is 120 seconds.
110 memoryStoreEvictionPolicy - Policy would be enforced upon reaching the maxElementsInMemory limit. Default
111 policy is Least Recently Used (specified as LRU). Other policies available -
112 First In First Out (specified as FIFO) and Less Frequently Used
113 (specified as LFU)
114 -->
115
116 <defaultCache
117 maxElementsInMemory="10"
118 eternal="false"
119 timeToIdleSeconds="100"
120 timeToLiveSeconds="100"
121 overflowToDisk="true">
122 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
123 properties="replicateAsynchronously=true,
124 replicatePuts=true,
125 replicateUpdates=true,
126 replicateUpdatesViaCopy=true,
127 replicateRemovals=true "/>
128 </defaultCache>
129
130
131 <!--Predefined caches. Add your cache configuration settings here.
132 If you do not have a configuration for your cache a WARNING will be issued when the
133 CacheManager starts
134
135 The following attributes are required for defaultCache:
136
137 name - Sets the name of the cache. This is used to identify the cache.
138 It must be unique.
139 maxElementsInMemory - Sets the maximum number of objects that will be created in memory
140 eternal - Sets whether elements are eternal. If eternal, timeouts are ignored and the
141 element is never expired.
142 overflowToDisk - Sets whether elements can overflow to disk when the in-memory cache
143 has reached the maxInMemory limit.
144
145 The following attributes are optional:
146 timeToIdleSeconds - Sets the time to idle for an element before it expires.
147 i.e. The maximum amount of time between accesses before an element expires
148 Is only used if the element is not eternal.
149 Optional attribute. A value of 0 means that an Element can idle for infinity.
150 The default value is 0.
151 timeToLiveSeconds - Sets the time to live for an element before it expires.
152 i.e. The maximum time between creation time and when an element expires.
153 Is only used if the element is not eternal.
154 Optional attribute. A value of 0 means that and Element can live for infinity.
155 The default value is 0.
156 diskPersistent - Whether the disk store persists between restarts of the Virtual Machine.
157 The default value is false.
158 diskExpiryThreadIntervalSeconds- The number of seconds between runs of the disk expiry thread. The default value
159 is 120 seconds.
160 memoryStoreEvictionPolicy - Policy would be enforced upon reaching the maxElementsInMemory limit. Default
161 policy is Least Recently Used (specified as LRU). Other policies available -
162 First In First Out (specified as FIFO) and Less Frequently Used
163 (specified as LFU)
164 -->
165
166
167 <!-- Sample cache named sampleCache1 -->
168 <cache name="sampleCache1"
169 maxElementsInMemory="10"
170 eternal="true"
171 timeToIdleSeconds="100"
172 timeToLiveSeconds="100"
173 overflowToDisk="true"
174 memoryStoreEvictionPolicy="LRU"
175 diskExpiryThreadIntervalSeconds="1000"
176 >
177 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
178 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
179 <!--<cacheEventListenerFactory class="net.sf.ehcache.event.CountingCacheEventListenerFactory"/>-->
180 </cache>
181
182 <!-- Sample cache named sampleCache2. This one has a 10ms cache replication interval. -->
183 <cache name="sampleCache2"
184 maxElementsInMemory="10"
185 eternal="false"
186 timeToIdleSeconds="100"
187 timeToLiveSeconds="100"
188 overflowToDisk="true">
189 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
190 properties="replicateAsynchronously=true,
191 replicatePuts=true,
192 replicateUpdates=true,
193 replicateUpdatesViaCopy=false,
194 replicateRemovals=true,
195 asynchronousReplicationIntervalMillis=10"/>
196 <bootstrapCacheLoaderFactory class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
197 properties="bootstrapAsynchronously=false,
198 maximumChunkSizeBytes=5000000"/>
199 </cache>
200
201
202 <!-- Sample cache named sampleCache3. It is set for synchronous replication. -->
203 <cache name="sampleCache3"
204 maxElementsInMemory="10"
205 eternal="true"
206 overflowToDisk="true">
207 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
208 properties="replicateAsynchronously=false, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
209 </cache>
210
211 <!-- Sample cache named sampleCache4. All missing RMICacheReplicatorFactory properties default to true -->
212 <cache name="sampleCache4"
213 maxElementsInMemory="10"
214 eternal="true"
215 overflowToDisk="false"
216 memoryStoreEvictionPolicy="LFU">
217 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"/>
218 </cache>
219
220 <!-- Sample cache names sampleCache5. The missing replicatePuts will default to true -->
221 <cache name="sampleCache5"
222 maxElementsInMemory="10"
223 eternal="false"
224 timeToLiveSeconds="100"
225 overflowToDisk="false">
226 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
227 properties="replicateAsynchronously=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
228 </cache>
229
230 <cache name="sampleCache6"
231 maxElementsInMemory="10"
232 eternal="false"
233 timeToLiveSeconds="100"
234 overflowToDisk="false">
235 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
236 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
237 </cache>
238
239 <cache name="sampleCache7"
240 maxElementsInMemory="10"
241 eternal="false"
242 timeToLiveSeconds="100"
243 overflowToDisk="false">
244 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
245 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
246 </cache>
247
248
249 <cache name="sampleCache8"
250 maxElementsInMemory="10"
251 eternal="false"
252 timeToLiveSeconds="100"
253 overflowToDisk="false">
254 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
255 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
256 </cache>
257
258
259 <cache name="sampleCache9"
260 maxElementsInMemory="10"
261 eternal="false"
262 timeToLiveSeconds="100"
263 overflowToDisk="false">
264 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
265 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
266 </cache>
267
268
269 <cache name="sampleCache10"
270 maxElementsInMemory="10"
271 eternal="false"
272 timeToLiveSeconds="100"
273 overflowToDisk="false">
274 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
275 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
276 </cache>
277
278
279 <cache name="sampleCache11"
280 maxElementsInMemory="10"
281 eternal="false"
282 timeToLiveSeconds="100"
283 overflowToDisk="false">
284 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
285 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
286 </cache>
287
288
289 <cache name="sampleCache12"
290 maxElementsInMemory="10"
291 eternal="false"
292 timeToLiveSeconds="100"
293 overflowToDisk="false">
294 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
295 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
296 </cache>
297
298
299 <cache name="sampleCache13"
300 maxElementsInMemory="10"
301 eternal="false"
302 timeToLiveSeconds="100"
303 overflowToDisk="false">
304 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
305 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
306 </cache>
307
308
309 <cache name="sampleCache15"
310 maxElementsInMemory="10"
311 eternal="false"
312 timeToLiveSeconds="100"
313 overflowToDisk="false">
314 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
315 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
316 </cache>
317
318
319 <cache name="sampleCache16"
320 maxElementsInMemory="10"
321 eternal="false"
322 timeToLiveSeconds="100"
323 overflowToDisk="false">
324 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
325 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
326 </cache>
327
328
329 <cache name="sampleCache17"
330 maxElementsInMemory="10"
331 eternal="false"
332 timeToLiveSeconds="100"
333 overflowToDisk="false">
334 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
335 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
336 </cache>
337
338
339 <cache name="sampleCache18"
340 maxElementsInMemory="10"
341 eternal="false"
342 timeToLiveSeconds="100"
343 overflowToDisk="false">
344 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
345 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
346 </cache>
347
348
349 <cache name="sampleCache19"
350 maxElementsInMemory="10"
351 eternal="false"
352 timeToLiveSeconds="100"
353 overflowToDisk="false">
354 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
355 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
356 </cache>
357
358
359 <cache name="sampleCache20"
360 maxElementsInMemory="10"
361 eternal="false"
362 timeToLiveSeconds="100"
363 overflowToDisk="false">
364 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
365 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
366 </cache>
367
368
369 <cache name="sampleCache21"
370 maxElementsInMemory="10"
371 eternal="false"
372 timeToLiveSeconds="100"
373 overflowToDisk="false">
374 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
375 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
376 </cache>
377
378
379 <cache name="sampleCache22"
380 maxElementsInMemory="10"
381 eternal="false"
382 timeToLiveSeconds="100"
383 overflowToDisk="false">
384 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
385 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
386 </cache>
387
388
389 <cache name="sampleCache23"
390 maxElementsInMemory="10"
391 eternal="false"
392 timeToLiveSeconds="100"
393 overflowToDisk="false">
394 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
395 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
396 </cache>
397
398
399 <cache name="sampleCache24"
400 maxElementsInMemory="10"
401 eternal="false"
402 timeToLiveSeconds="100"
403 overflowToDisk="false">
404 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
405 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
406 </cache>
407
408
409 <cache name="sampleCache25"
410 maxElementsInMemory="10"
411 eternal="false"
412 timeToLiveSeconds="100"
413 overflowToDisk="false">
414 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
415 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
416 </cache>
417
418
419 <cache name="sampleCache26"
420 maxElementsInMemory="10"
421 eternal="false"
422 timeToLiveSeconds="100"
423 overflowToDisk="false">
424 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
425 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
426 </cache>
427
428
429 <cache name="sampleCache27"
430 maxElementsInMemory="10"
431 eternal="false"
432 timeToLiveSeconds="100"
433 overflowToDisk="false">
434 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
435 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
436 </cache>
437
438
439 <cache name="sampleCache28"
440 maxElementsInMemory="10"
441 eternal="false"
442 timeToLiveSeconds="100"
443 overflowToDisk="false">
444 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
445 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
446 </cache>
447
448 <cache name="sampleCache29"
449 maxElementsInMemory="10"
450 eternal="false"
451 timeToLiveSeconds="100"
452 overflowToDisk="false">
453 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
454 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
455 </cache>
456
457 <cache name="sampleCache30"
458 maxElementsInMemory="10"
459 eternal="false"
460 timeToLiveSeconds="100"
461 overflowToDisk="false">
462 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
463 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
464 </cache>
465
466 <cache name="sampleCache31"
467 maxElementsInMemory="10"
468 eternal="false"
469 timeToLiveSeconds="100"
470 overflowToDisk="false">
471 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
472 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
473 </cache>
474
475 <cache name="sampleCache32"
476 maxElementsInMemory="10"
477 eternal="false"
478 timeToLiveSeconds="100"
479 overflowToDisk="false">
480 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
481 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
482 </cache>
483
484 <cache name="sampleCache33"
485 maxElementsInMemory="10"
486 eternal="false"
487 timeToLiveSeconds="100"
488 overflowToDisk="false">
489 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
490 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
491 </cache>
492
493 <cache name="sampleCache34"
494 maxElementsInMemory="10"
495 eternal="false"
496 timeToLiveSeconds="100"
497 overflowToDisk="false">
498 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
499 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
500 </cache>
501
502 <cache name="sampleCache35"
503 maxElementsInMemory="10"
504 eternal="false"
505 timeToLiveSeconds="100"
506 overflowToDisk="false">
507 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
508 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
509 </cache>
510
511 <cache name="sampleCache36"
512 maxElementsInMemory="10"
513 eternal="false"
514 timeToLiveSeconds="100"
515 overflowToDisk="false">
516 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
517 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
518 </cache>
519
520 <cache name="sampleCache37"
521 maxElementsInMemory="10"
522 eternal="false"
523 timeToLiveSeconds="100"
524 overflowToDisk="false">
525 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
526 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
527 </cache>
528
529 <cache name="sampleCache38"
530 maxElementsInMemory="10"
531 eternal="false"
532 timeToLiveSeconds="100"
533 overflowToDisk="false">
534 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
535 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
536 </cache>
537
538 <cache name="sampleCache39"
539 maxElementsInMemory="10"
540 eternal="false"
541 timeToLiveSeconds="100"
542 overflowToDisk="false">
543 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
544 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
545 </cache>
546
547 <cache name="sampleCache40"
548 maxElementsInMemory="10"
549 eternal="false"
550 timeToLiveSeconds="100"
551 overflowToDisk="false">
552 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
553 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
554 </cache>
555
556 <cache name="sampleCache41"
557 maxElementsInMemory="10"
558 eternal="false"
559 timeToLiveSeconds="100"
560 overflowToDisk="false">
561 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
562 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
563 </cache>
564
565 <cache name="sampleCache42"
566 maxElementsInMemory="10"
567 eternal="false"
568 timeToLiveSeconds="100"
569 overflowToDisk="false">
570 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
571 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
572 </cache>
573
574 <cache name="sampleCache43"
575 maxElementsInMemory="10"
576 eternal="false"
577 timeToLiveSeconds="100"
578 overflowToDisk="false">
579 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
580 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
581 </cache>
582
583 <cache name="sampleCache44"
584 maxElementsInMemory="10"
585 eternal="false"
586 timeToLiveSeconds="100"
587 overflowToDisk="false">
588 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
589 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
590 </cache>
591
592 <cache name="sampleCache45"
593 maxElementsInMemory="10"
594 eternal="false"
595 timeToLiveSeconds="100"
596 overflowToDisk="false">
597 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
598 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
599 </cache>
600
601 <cache name="sampleCache46"
602 maxElementsInMemory="10"
603 eternal="false"
604 timeToLiveSeconds="100"
605 overflowToDisk="false">
606 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
607 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
608 </cache>
609
610 <cache name="sampleCache47"
611 maxElementsInMemory="10"
612 eternal="false"
613 timeToLiveSeconds="100"
614 overflowToDisk="false">
615 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
616 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
617 </cache>
618
619 <cache name="sampleCache48"
620 maxElementsInMemory="10"
621 eternal="false"
622 timeToLiveSeconds="100"
623 overflowToDisk="false">
624 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
625 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
626 </cache>
627
628 <cache name="sampleCache49"
629 maxElementsInMemory="10"
630 eternal="false"
631 timeToLiveSeconds="100"
632 overflowToDisk="false">
633 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
634 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
635 </cache>
636
637 <cache name="sampleCache50"
638 maxElementsInMemory="10"
639 eternal="false"
640 timeToLiveSeconds="100"
641 overflowToDisk="false">
642 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
643 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
644 </cache>
645
646 <cache name="sampleCache51"
647 maxElementsInMemory="10"
648 eternal="false"
649 timeToLiveSeconds="100"
650 overflowToDisk="false">
651 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
652 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
653 </cache>
654
655 <cache name="sampleCache52"
656 maxElementsInMemory="10"
657 eternal="false"
658 timeToLiveSeconds="100"
659 overflowToDisk="false">
660 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
661 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
662 </cache>
663
664 <cache name="sampleCache53"
665 maxElementsInMemory="10"
666 eternal="false"
667 timeToLiveSeconds="100"
668 overflowToDisk="false">
669 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
670 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
671 </cache>
672
673 <cache name="sampleCache54"
674 maxElementsInMemory="10"
675 eternal="false"
676 timeToLiveSeconds="100"
677 overflowToDisk="false">
678 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
679 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
680 </cache>
681
682 <cache name="sampleCache55"
683 maxElementsInMemory="10"
684 eternal="false"
685 timeToLiveSeconds="100"
686 overflowToDisk="false">
687 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
688 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
689 </cache>
690
691 <cache name="sampleCache56"
692 maxElementsInMemory="10"
693 eternal="false"
694 timeToLiveSeconds="100"
695 overflowToDisk="false">
696 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
697 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
698 </cache>
699
700 <!-- Sample cache named sampleCacheNoIdle, which does not specify the optional idle time -->
701 <cache name="sampleCacheNoIdle"
702 maxElementsInMemory="1000"
703 eternal="false"
704 timeToLiveSeconds="5"
705 overflowToDisk="false"
706 />
707
708 <!-- Sample cache named sampleCacheNotEternalButNoIdleOrExpiry -->
709 <cache name="sampleCacheNotEternalButNoIdleOrExpiry"
710 maxElementsInMemory="1000"
711 eternal="false"
712 overflowToDisk="false"
713 />
714
715 <!-- A cache with short idle and live expiries, suitable for tests -->
716 <cache name="sampleIdlingExpiringCache"
717 maxElementsInMemory="1"
718 eternal="false"
719 timeToIdleSeconds="2"
720 timeToLiveSeconds="5"
721 overflowToDisk="true"
722 />
723
724 <!-- A cache which overflows to disk. The disk store is persistent
725 between cache and VM restarts. The disk expiry thread interval is set to 10 minutes, overriding
726 the default of 2 minutes. -->
727 <cache name="persistentLongExpiryIntervalCache"
728 maxElementsInMemory="500"
729 eternal="false"
730 timeToIdleSeconds="300"
731 timeToLiveSeconds="600"
732 overflowToDisk="true"
733 diskPersistent="true"
734 diskExpiryThreadIntervalSeconds="600"
735 />
736
737 <!-- Page Caches -->
738
739 <cache name="CachedLogin"
740 maxElementsInMemory="10"
741 eternal="false"
742 timeToIdleSeconds="10000"
743 timeToLiveSeconds="10000"
744 overflowToDisk="true"
745 />
746
747 <cache name="FooterPageCache"
748 maxElementsInMemory="10"
749 eternal="false"
750 timeToIdleSeconds="10000"
751 timeToLiveSeconds="10000"
752 overflowToDisk="true"
753 />
754
755 </ehcache>