Debian Codegraph @

src/test/resources/distribution/ehcache-bad-manual-distributed.xml

raw
1 <ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../main/config/ehcache.xsd">
2
3 <!-- Sets the path to the directory where cache .data files are created.
4
5 If the path is a Java System Property it is replaced by
6 its value in the running VM. Subdirectories can be specified below the property e.g. java.io.tmpdir/one
7
8 The following properties are translated:
9 user.home - User's home directory
10 user.dir - User's current working directory
11 java.io.tmpdir - Default temp file path -->
12 <diskStore path="java.io.tmpdir/bad"/>
13
14
15 <!--
16 Specifies a CacheManagerEventListenerFactory which will be used to create a CacheManagerPeerProvider, which
17 is notified when Caches are added or removed from the CacheManager.
18
19 The attributes of CacheManagerEventListenerFactory are:
20 - class - a fully qualified factory class name
21 - properties - comma separated properties having meaning only to the factory.
22
23 Sets the fully qualified class name to be registered as the CacheManager event listener.
24
25 The events include:
26 - adding a Cache
27 - removing a Cache
28
29 Callbacks to listener methods are synchronous and unsynchronized. It is the responsibility of the implementer
30 to safely handle the potential performance and thread safety issues depending on what their listener is doing.
31
32 If no class is specified, no listener is created. There is no default.
33 -->
34 <cacheManagerEventListenerFactory class="net.sf.ehcache.event.TestCacheManagerEventListenerFactory"
35 properties="type=counting"/>
36
37
38 <!--
39 How a CacheManager, which is part of a cluster, can find other peers.
40 There are two peer providers so far:
41
42 net.sf.ehcache.distribution.MulticastRMIManagerPeerProviderrovider
43 net.sf.ehcache.distribution.RMIManagerPeerProviderrovider
44
45 class - The fully qualified class name of the provider
46 properties - Properties to be interpreted by the factory
47
48 Note this one is broken by not having an rmiUrl list
49
50 -->
51 <cacheManagerPeerProviderFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
52 properties="peerDiscovery=manual, "/>
53
54 <!--
55 (Enable for distributed operation)
56
57 Specifies a CacheManagerPeerListenerFactory which will be used to create a CacheManagerPeerListener, which
58 listens for messages from cache replicators participating in the cluster.
59
60 The attributes of cacheManagerPeerListenerFactory are:
61 - class - a fully qualified factory class name
62 - properties - comma separated properties having meaning only to the factory.
63
64 Ehcache comes with a built-in RMI-based distribution system. The listener component is RMICacheManagerPeerListener
65 which is configured using RMICacheManagerPeerListenerFactory. It is configured as per the following example:
66
67 <cacheManagerPeerListenerFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"
68 properties="hostName=localhost, port=5011, socketTimeoutMillis=2000"/>
69
70 Valid properties are:
71 - hostName (optional) - the hostName of the host the listener is running on. Specify where the host is multihomed
72 and you want to control the interface over which cluster messages are received.
73 - port (mandatory) - the port the listener listens on.
74 - socketTimeoutMillis - the number of seconds client sockets will wait when sending messages to this listener
75 until they give up. By default this is 120s.
76
77 -->
78 <cacheManagerPeerListenerFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"
79 properties="hostName=localhost, port=5019, socketTimeoutMillis=2000"/>
80
81
82 <!--Default Cache configuration. These will applied to caches programmatically created through
83 the CacheManager.
84
85 The following attributes are required:
86
87 maxElementsInMemory - Sets the maximum number of objects that will be created in memory
88 eternal - Sets whether elements are eternal. If eternal, timeouts are ignored and the
89 element is never expired.
90 overflowToDisk - Sets whether elements can overflow to disk when the in-memory cache
91 has reached the maxInMemory limit.
92
93 The following attributes are optional:
94 timeToIdleSeconds - Sets the time to idle for an element before it expires.
95 i.e. The maximum amount of time between accesses before an element expires
96 Is only used if the element is not eternal.
97 Optional attribute. A value of 0 means that an Element can idle for infinity.
98 The default value is 0.
99 timeToLiveSeconds - Sets the time to live for an element before it expires.
100 i.e. The maximum time between creation time and when an element expires.
101 Is only used if the element is not eternal.
102 Optional attribute. A value of 0 means that and Element can live for infinity.
103 The default value is 0.
104 diskPersistent - Whether the disk store persists between restarts of the Virtual Machine.
105 The default value is false.
106 diskExpiryThreadIntervalSeconds- The number of seconds between runs of the disk expiry thread. The default value
107 is 120 seconds.
108 memoryStoreEvictionPolicy - Policy would be enforced upon reaching the maxElementsInMemory limit. Default
109 policy is Least Recently Used (specified as LRU). Other policies available -
110 First In First Out (specified as FIFO) and Less Frequently Used
111 (specified as LFU)
112 -->
113
114 <defaultCache
115 maxElementsInMemory="10"
116 eternal="false"
117 timeToIdleSeconds="5"
118 timeToLiveSeconds="10"
119 overflowToDisk="true"
120 />
121
122
123 <!--Predefined caches. Add your cache configuration settings here.
124 If you do not have a configuration for your cache a WARNING will be issued when the
125 CacheManager starts
126
127 The following attributes are required for defaultCache:
128
129 name - Sets the name of the cache. This is used to identify the cache.
130 It must be unique.
131 maxElementsInMemory - Sets the maximum number of objects that will be created in memory
132 eternal - Sets whether elements are eternal. If eternal, timeouts are ignored and the
133 element is never expired.
134 overflowToDisk - Sets whether elements can overflow to disk when the in-memory cache
135 has reached the maxInMemory limit.
136
137 The following attributes are optional:
138 timeToIdleSeconds - Sets the time to idle for an element before it expires.
139 i.e. The maximum amount of time between accesses before an element expires
140 Is only used if the element is not eternal.
141 Optional attribute. A value of 0 means that an Element can idle for infinity.
142 The default value is 0.
143 timeToLiveSeconds - Sets the time to live for an element before it expires.
144 i.e. The maximum time between creation time and when an element expires.
145 Is only used if the element is not eternal.
146 Optional attribute. A value of 0 means that and Element can live for infinity.
147 The default value is 0.
148 diskPersistent - Whether the disk store persists between restarts of the Virtual Machine.
149 The default value is false.
150 diskExpiryThreadIntervalSeconds- The number of seconds between runs of the disk expiry thread. The default value
151 is 120 seconds.
152 memoryStoreEvictionPolicy - Policy would be enforced upon reaching the maxElementsInMemory limit. Default
153 policy is Least Recently Used (specified as LRU). Other policies available -
154 First In First Out (specified as FIFO) and Less Frequently Used
155 (specified as LFU)
156 -->
157
158
159 <!-- Sample cache named sampleCache1 -->
160 <cache name="sampleCache1"
161 maxElementsInMemory="10"
162 eternal="true"
163 timeToIdleSeconds="100"
164 timeToLiveSeconds="100"
165 overflowToDisk="true"
166 memoryStoreEvictionPolicy="LRU"
167 diskExpiryThreadIntervalSeconds="1"
168 >
169 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
170 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
171 </cache>
172
173 <!-- Sample cache named sampleCache2. -->
174 <cache name="sampleCache2"
175 maxElementsInMemory="10"
176 eternal="false"
177 timeToIdleSeconds="100"
178 timeToLiveSeconds="100"
179 overflowToDisk="false">
180 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
181 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
182 </cache>
183
184
185 <!-- Sample cache named sampleCache3. -->
186 <cache name="sampleCache3"
187 maxElementsInMemory="10"
188 eternal="false"
189 timeToLiveSeconds="1"
190 overflowToDisk="false"
191 memoryStoreEvictionPolicy="FIFO"
192 />
193
194 <!-- Sample cache named sampleCache4. -->
195 <cache name="sampleCache4"
196 maxElementsInMemory="10"
197 eternal="false"
198 timeToLiveSeconds="1"
199 overflowToDisk="false"
200 memoryStoreEvictionPolicy="LFU"
201 />
202
203 <cache name="sampleCache5"
204 maxElementsInMemory="10"
205 eternal="false"
206 timeToLiveSeconds="100"
207 overflowToDisk="false">
208 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
209 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
210 </cache>
211
212 <cache name="sampleCache6"
213 maxElementsInMemory="10"
214 eternal="false"
215 timeToLiveSeconds="100"
216 overflowToDisk="false">
217 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
218 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
219 </cache>
220
221 <cache name="sampleCache7"
222 maxElementsInMemory="10"
223 eternal="false"
224 timeToLiveSeconds="100"
225 overflowToDisk="false">
226 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
227 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
228 </cache>
229
230
231 <cache name="sampleCache8"
232 maxElementsInMemory="10"
233 eternal="false"
234 timeToLiveSeconds="100"
235 overflowToDisk="false">
236 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
237 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
238 </cache>
239
240
241 <cache name="sampleCache9"
242 maxElementsInMemory="10"
243 eternal="false"
244 timeToLiveSeconds="100"
245 overflowToDisk="false">
246 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
247 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
248 </cache>
249
250
251 <cache name="sampleCache10"
252 maxElementsInMemory="10"
253 eternal="false"
254 timeToLiveSeconds="100"
255 overflowToDisk="false">
256 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
257 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
258 </cache>
259
260
261 <cache name="sampleCache11"
262 maxElementsInMemory="10"
263 eternal="false"
264 timeToLiveSeconds="100"
265 overflowToDisk="false">
266 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
267 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
268 </cache>
269
270
271 <cache name="sampleCache12"
272 maxElementsInMemory="10"
273 eternal="false"
274 timeToLiveSeconds="100"
275 overflowToDisk="false">
276 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
277 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
278 </cache>
279
280
281 <cache name="sampleCache13"
282 maxElementsInMemory="10"
283 eternal="false"
284 timeToLiveSeconds="100"
285 overflowToDisk="false">
286 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
287 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
288 </cache>
289
290
291 <cache name="sampleCache15"
292 maxElementsInMemory="10"
293 eternal="false"
294 timeToLiveSeconds="100"
295 overflowToDisk="false">
296 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
297 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
298 </cache>
299
300
301 <cache name="sampleCache16"
302 maxElementsInMemory="10"
303 eternal="false"
304 timeToLiveSeconds="100"
305 overflowToDisk="false">
306 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
307 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
308 </cache>
309
310
311 <cache name="sampleCache17"
312 maxElementsInMemory="10"
313 eternal="false"
314 timeToLiveSeconds="100"
315 overflowToDisk="false">
316 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
317 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
318 </cache>
319
320
321 <cache name="sampleCache18"
322 maxElementsInMemory="10"
323 eternal="false"
324 timeToLiveSeconds="100"
325 overflowToDisk="false">
326 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
327 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
328 </cache>
329
330
331 <cache name="sampleCache19"
332 maxElementsInMemory="10"
333 eternal="false"
334 timeToLiveSeconds="100"
335 overflowToDisk="false">
336 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
337 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
338 </cache>
339
340
341 <cache name="sampleCache20"
342 maxElementsInMemory="10"
343 eternal="false"
344 timeToLiveSeconds="100"
345 overflowToDisk="false">
346 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
347 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
348 </cache>
349
350
351 <cache name="sampleCache21"
352 maxElementsInMemory="10"
353 eternal="false"
354 timeToLiveSeconds="100"
355 overflowToDisk="false">
356 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
357 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
358 </cache>
359
360
361 <cache name="sampleCache22"
362 maxElementsInMemory="10"
363 eternal="false"
364 timeToLiveSeconds="100"
365 overflowToDisk="false">
366 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
367 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
368 </cache>
369
370
371 <cache name="sampleCache23"
372 maxElementsInMemory="10"
373 eternal="false"
374 timeToLiveSeconds="100"
375 overflowToDisk="false">
376 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
377 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
378 </cache>
379
380
381 <cache name="sampleCache24"
382 maxElementsInMemory="10"
383 eternal="false"
384 timeToLiveSeconds="100"
385 overflowToDisk="false">
386 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
387 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
388 </cache>
389
390
391 <cache name="sampleCache25"
392 maxElementsInMemory="10"
393 eternal="false"
394 timeToLiveSeconds="100"
395 overflowToDisk="false">
396 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
397 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
398 </cache>
399
400
401 <cache name="sampleCache26"
402 maxElementsInMemory="10"
403 eternal="false"
404 timeToLiveSeconds="100"
405 overflowToDisk="false">
406 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
407 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
408 </cache>
409
410
411 <cache name="sampleCache27"
412 maxElementsInMemory="10"
413 eternal="false"
414 timeToLiveSeconds="100"
415 overflowToDisk="false">
416 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
417 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
418 </cache>
419
420
421 <cache name="sampleCache28"
422 maxElementsInMemory="10"
423 eternal="false"
424 timeToLiveSeconds="100"
425 overflowToDisk="false">
426 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
427 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
428 </cache>
429
430 <cache name="sampleCache29"
431 maxElementsInMemory="10"
432 eternal="false"
433 timeToLiveSeconds="100"
434 overflowToDisk="false">
435 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
436 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
437 </cache>
438
439 <cache name="sampleCache30"
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="sampleCache31"
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="sampleCache32"
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="sampleCache33"
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="sampleCache34"
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="sampleCache35"
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="sampleCache36"
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="sampleCache37"
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="sampleCache38"
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="sampleCache39"
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="sampleCache40"
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="sampleCache41"
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="sampleCache42"
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="sampleCache43"
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="sampleCache44"
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="sampleCache45"
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="sampleCache46"
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="sampleCache47"
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="sampleCache48"
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="sampleCache49"
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="sampleCache50"
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="sampleCache51"
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="sampleCache52"
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="sampleCache53"
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="sampleCache54"
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="sampleCache55"
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="sampleCache56"
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 <!-- Sample cache named sampleCacheNoIdle, which does not specify the optional idle time -->
683 <cache name="sampleCacheNoIdle"
684 maxElementsInMemory="1000"
685 eternal="false"
686 timeToLiveSeconds="5"
687 overflowToDisk="false"
688 />
689
690 <!-- Sample cache named sampleCacheNotEternalButNoIdleOrExpiry -->
691 <cache name="sampleCacheNotEternalButNoIdleOrExpiry"
692 maxElementsInMemory="1000"
693 eternal="false"
694 overflowToDisk="false"
695 />
696
697 <!-- A cache with short idle and live expiries, suitable for tests -->
698 <cache name="sampleIdlingExpiringCache"
699 maxElementsInMemory="1"
700 eternal="false"
701 timeToIdleSeconds="2"
702 timeToLiveSeconds="5"
703 overflowToDisk="true"
704 />
705
706 <!-- A cache which overflows to disk. The disk store is persistent
707 between cache and VM restarts. The disk expiry thread interval is set to 10 minutes, overriding
708 the default of 2 minutes. -->
709 <cache name="persistentLongExpiryIntervalCache"
710 maxElementsInMemory="500"
711 eternal="false"
712 timeToIdleSeconds="300"
713 timeToLiveSeconds="600"
714 overflowToDisk="true"
715 diskPersistent="true"
716 diskExpiryThreadIntervalSeconds="600"
717 />
718
719 <!-- Page Caches -->
720
721 <cache name="CachedLogin"
722 maxElementsInMemory="10"
723 eternal="false"
724 timeToIdleSeconds="10000"
725 timeToLiveSeconds="10000"
726 overflowToDisk="true"
727 />
728
729 <cache name="FooterPageCache"
730 maxElementsInMemory="10"
731 eternal="false"
732 timeToIdleSeconds="10000"
733 timeToLiveSeconds="10000"
734 overflowToDisk="true"
735 />
736
737 </ehcache>