Debian Codegraph @

src/test/perfResources/ehcache-distributed4.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/four"/>
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 (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 -->
79
80 <cacheManagerPeerListenerFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory" properties="port=5014, socketTimeoutMillis=2000"/>
81
82
83 <!--Default Cache configuration. These will applied to caches programmatically created through
84 the CacheManager.
85
86 The following attributes are required:
87
88 maxElementsInMemory - Sets the maximum number of objects that will be created in memory
89 eternal - Sets whether elements are eternal. If eternal, timeouts are ignored and the
90 element is never expired.
91 overflowToDisk - Sets whether elements can overflow to disk when the in-memory cache
92 has reached the maxInMemory limit.
93
94 The following attributes are optional:
95 timeToIdleSeconds - Sets the time to idle for an element before it expires.
96 i.e. The maximum amount of time between accesses before an element expires
97 Is only used if the element is not eternal.
98 Optional attribute. A value of 0 means that an Element can idle for infinity.
99 The default value is 0.
100 timeToLiveSeconds - Sets the time to live for an element before it expires.
101 i.e. The maximum time between creation time and when an element expires.
102 Is only used if the element is not eternal.
103 Optional attribute. A value of 0 means that and Element can live for infinity.
104 The default value is 0.
105 diskPersistent - Whether the disk store persists between restarts of the Virtual Machine.
106 The default value is false.
107 diskExpiryThreadIntervalSeconds- The number of seconds between runs of the disk expiry thread. The default value
108 is 120 seconds.
109 memoryStoreEvictionPolicy - Policy would be enforced upon reaching the maxElementsInMemory limit. Default
110 policy is Least Recently Used (specified as LRU). Other policies available -
111 First In First Out (specified as FIFO) and Less Frequently Used
112 (specified as LFU)
113 -->
114
115 <defaultCache
116 maxElementsInMemory="10"
117 eternal="false"
118 timeToIdleSeconds="100"
119 timeToLiveSeconds="100"
120 overflowToDisk="true">
121 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
122 properties="replicateAsynchronously=true,
123 replicatePuts=true,
124 replicateUpdates=true,
125 replicateUpdatesViaCopy=true,
126 replicateRemovals=true "/>
127 </defaultCache>
128
129
130 <!--Predefined caches. Add your cache configuration settings here.
131 If you do not have a configuration for your cache a WARNING will be issued when the
132 CacheManager starts
133
134 The following attributes are required for defaultCache:
135
136 name - Sets the name of the cache. This is used to identify the cache.
137 It must be unique.
138 maxElementsInMemory - Sets the maximum number of objects that will be created in memory
139 eternal - Sets whether elements are eternal. If eternal, timeouts are ignored and the
140 element is never expired.
141 overflowToDisk - Sets whether elements can overflow to disk when the in-memory cache
142 has reached the maxInMemory limit.
143
144 The following attributes are optional:
145 timeToIdleSeconds - Sets the time to idle for an element before it expires.
146 i.e. The maximum amount of time between accesses before an element expires
147 Is only used if the element is not eternal.
148 Optional attribute. A value of 0 means that an Element can idle for infinity.
149 The default value is 0.
150 timeToLiveSeconds - Sets the time to live for an element before it expires.
151 i.e. The maximum time between creation time and when an element expires.
152 Is only used if the element is not eternal.
153 Optional attribute. A value of 0 means that and Element can live for infinity.
154 The default value is 0.
155 diskPersistent - Whether the disk store persists between restarts of the Virtual Machine.
156 The default value is false.
157 diskExpiryThreadIntervalSeconds- The number of seconds between runs of the disk expiry thread. The default value
158 is 120 seconds.
159 memoryStoreEvictionPolicy - Policy would be enforced upon reaching the maxElementsInMemory limit. Default
160 policy is Least Recently Used (specified as LRU). Other policies available -
161 First In First Out (specified as FIFO) and Less Frequently Used
162 (specified as LFU)
163 -->
164
165
166 <!-- Sample cache named sampleCache1 -->
167 <cache name="sampleCache1"
168 maxElementsInMemory="10"
169 eternal="true"
170 timeToIdleSeconds="100"
171 timeToLiveSeconds="100"
172 overflowToDisk="true"
173 memoryStoreEvictionPolicy="LRU"
174 diskExpiryThreadIntervalSeconds="1000"
175 >
176 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
177 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
178 <!--<cacheEventListenerFactory class="net.sf.ehcache.event.CountingCacheEventListenerFactory"/>-->
179 </cache>
180
181 <!-- Sample cache named sampleCache2. This one has a 10ms cache replication interval. -->
182 <cache name="sampleCache2"
183 maxElementsInMemory="10"
184 eternal="false"
185 timeToIdleSeconds="100"
186 timeToLiveSeconds="100"
187 overflowToDisk="true">
188 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
189 properties="replicateAsynchronously=true,
190 replicatePuts=true,
191 replicateUpdates=true,
192 replicateUpdatesViaCopy=false,
193 replicateRemovals=true,
194 asynchronousReplicationIntervalMillis=10"/>
195 <bootstrapCacheLoaderFactory class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
196 properties="bootstrapAsynchronously=false,
197 maximumChunkSizeBytes=5000000"/>
198 </cache>
199
200
201 <!-- Sample cache named sampleCache3. It is set for synchronous replication. -->
202 <cache name="sampleCache3"
203 maxElementsInMemory="10"
204 eternal="true"
205 overflowToDisk="true">
206 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
207 properties="replicateAsynchronously=false, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
208 </cache>
209
210 <!-- Sample cache named sampleCache4. All missing RMICacheReplicatorFactory properties default to true -->
211 <cache name="sampleCache4"
212 maxElementsInMemory="10"
213 eternal="true"
214 overflowToDisk="false"
215 memoryStoreEvictionPolicy="LFU">
216 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"/>
217 </cache>
218
219 <!-- Sample cache names sampleCache5. The missing replicatePuts will default to true -->
220 <cache name="sampleCache5"
221 maxElementsInMemory="10"
222 eternal="false"
223 timeToLiveSeconds="100"
224 overflowToDisk="false">
225 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
226 properties="replicateAsynchronously=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
227 </cache>
228
229 <cache name="sampleCache6"
230 maxElementsInMemory="10"
231 eternal="false"
232 timeToLiveSeconds="100"
233 overflowToDisk="false">
234 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
235 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
236 </cache>
237
238 <cache name="sampleCache7"
239 maxElementsInMemory="10"
240 eternal="false"
241 timeToLiveSeconds="100"
242 overflowToDisk="false">
243 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
244 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
245 </cache>
246
247
248 <cache name="sampleCache8"
249 maxElementsInMemory="10"
250 eternal="false"
251 timeToLiveSeconds="100"
252 overflowToDisk="false">
253 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
254 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
255 </cache>
256
257
258 <cache name="sampleCache9"
259 maxElementsInMemory="10"
260 eternal="false"
261 timeToLiveSeconds="100"
262 overflowToDisk="false">
263 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
264 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
265 </cache>
266
267
268 <cache name="sampleCache10"
269 maxElementsInMemory="10"
270 eternal="false"
271 timeToLiveSeconds="100"
272 overflowToDisk="false">
273 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
274 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
275 </cache>
276
277
278 <cache name="sampleCache11"
279 maxElementsInMemory="10"
280 eternal="false"
281 timeToLiveSeconds="100"
282 overflowToDisk="false">
283 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
284 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
285 </cache>
286
287
288 <cache name="sampleCache12"
289 maxElementsInMemory="10"
290 eternal="false"
291 timeToLiveSeconds="100"
292 overflowToDisk="false">
293 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
294 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
295 </cache>
296
297
298 <cache name="sampleCache13"
299 maxElementsInMemory="10"
300 eternal="false"
301 timeToLiveSeconds="100"
302 overflowToDisk="false">
303 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
304 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
305 </cache>
306
307
308 <cache name="sampleCache15"
309 maxElementsInMemory="10"
310 eternal="false"
311 timeToLiveSeconds="100"
312 overflowToDisk="false">
313 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
314 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
315 </cache>
316
317
318 <cache name="sampleCache16"
319 maxElementsInMemory="10"
320 eternal="false"
321 timeToLiveSeconds="100"
322 overflowToDisk="false">
323 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
324 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
325 </cache>
326
327
328 <cache name="sampleCache17"
329 maxElementsInMemory="10"
330 eternal="false"
331 timeToLiveSeconds="100"
332 overflowToDisk="false">
333 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
334 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
335 </cache>
336
337
338 <cache name="sampleCache18"
339 maxElementsInMemory="10"
340 eternal="false"
341 timeToLiveSeconds="100"
342 overflowToDisk="false">
343 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
344 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
345 </cache>
346
347
348 <cache name="sampleCache19"
349 maxElementsInMemory="10"
350 eternal="false"
351 timeToLiveSeconds="100"
352 overflowToDisk="false">
353 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
354 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
355 </cache>
356
357
358 <cache name="sampleCache20"
359 maxElementsInMemory="10"
360 eternal="false"
361 timeToLiveSeconds="100"
362 overflowToDisk="false">
363 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
364 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
365 </cache>
366
367
368 <cache name="sampleCache21"
369 maxElementsInMemory="10"
370 eternal="false"
371 timeToLiveSeconds="100"
372 overflowToDisk="false">
373 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
374 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
375 </cache>
376
377
378 <cache name="sampleCache22"
379 maxElementsInMemory="10"
380 eternal="false"
381 timeToLiveSeconds="100"
382 overflowToDisk="false">
383 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
384 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
385 </cache>
386
387
388 <cache name="sampleCache23"
389 maxElementsInMemory="10"
390 eternal="false"
391 timeToLiveSeconds="100"
392 overflowToDisk="false">
393 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
394 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
395 </cache>
396
397
398 <cache name="sampleCache24"
399 maxElementsInMemory="10"
400 eternal="false"
401 timeToLiveSeconds="100"
402 overflowToDisk="false">
403 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
404 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
405 </cache>
406
407
408 <cache name="sampleCache25"
409 maxElementsInMemory="10"
410 eternal="false"
411 timeToLiveSeconds="100"
412 overflowToDisk="false">
413 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
414 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
415 </cache>
416
417
418 <cache name="sampleCache26"
419 maxElementsInMemory="10"
420 eternal="false"
421 timeToLiveSeconds="100"
422 overflowToDisk="false">
423 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
424 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
425 </cache>
426
427
428 <cache name="sampleCache27"
429 maxElementsInMemory="10"
430 eternal="false"
431 timeToLiveSeconds="100"
432 overflowToDisk="false">
433 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
434 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
435 </cache>
436
437
438 <cache name="sampleCache28"
439 maxElementsInMemory="10"
440 eternal="false"
441 timeToLiveSeconds="100"
442 overflowToDisk="false">
443 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
444 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
445 </cache>
446
447 <cache name="sampleCache29"
448 maxElementsInMemory="10"
449 eternal="false"
450 timeToLiveSeconds="100"
451 overflowToDisk="false">
452 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
453 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
454 </cache>
455
456 <cache name="sampleCache30"
457 maxElementsInMemory="10"
458 eternal="false"
459 timeToLiveSeconds="100"
460 overflowToDisk="false">
461 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
462 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
463 </cache>
464
465 <cache name="sampleCache31"
466 maxElementsInMemory="10"
467 eternal="false"
468 timeToLiveSeconds="100"
469 overflowToDisk="false">
470 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
471 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
472 </cache>
473
474 <cache name="sampleCache32"
475 maxElementsInMemory="10"
476 eternal="false"
477 timeToLiveSeconds="100"
478 overflowToDisk="false">
479 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
480 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
481 </cache>
482
483 <cache name="sampleCache33"
484 maxElementsInMemory="10"
485 eternal="false"
486 timeToLiveSeconds="100"
487 overflowToDisk="false">
488 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
489 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
490 </cache>
491
492 <cache name="sampleCache34"
493 maxElementsInMemory="10"
494 eternal="false"
495 timeToLiveSeconds="100"
496 overflowToDisk="false">
497 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
498 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
499 </cache>
500
501 <cache name="sampleCache35"
502 maxElementsInMemory="10"
503 eternal="false"
504 timeToLiveSeconds="100"
505 overflowToDisk="false">
506 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
507 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
508 </cache>
509
510 <cache name="sampleCache36"
511 maxElementsInMemory="10"
512 eternal="false"
513 timeToLiveSeconds="100"
514 overflowToDisk="false">
515 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
516 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
517 </cache>
518
519 <cache name="sampleCache37"
520 maxElementsInMemory="10"
521 eternal="false"
522 timeToLiveSeconds="100"
523 overflowToDisk="false">
524 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
525 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
526 </cache>
527
528 <cache name="sampleCache38"
529 maxElementsInMemory="10"
530 eternal="false"
531 timeToLiveSeconds="100"
532 overflowToDisk="false">
533 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
534 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
535 </cache>
536
537 <cache name="sampleCache39"
538 maxElementsInMemory="10"
539 eternal="false"
540 timeToLiveSeconds="100"
541 overflowToDisk="false">
542 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
543 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
544 </cache>
545
546 <cache name="sampleCache40"
547 maxElementsInMemory="10"
548 eternal="false"
549 timeToLiveSeconds="100"
550 overflowToDisk="false">
551 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
552 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
553 </cache>
554
555 <cache name="sampleCache41"
556 maxElementsInMemory="10"
557 eternal="false"
558 timeToLiveSeconds="100"
559 overflowToDisk="false">
560 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
561 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
562 </cache>
563
564 <cache name="sampleCache42"
565 maxElementsInMemory="10"
566 eternal="false"
567 timeToLiveSeconds="100"
568 overflowToDisk="false">
569 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
570 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
571 </cache>
572
573 <cache name="sampleCache43"
574 maxElementsInMemory="10"
575 eternal="false"
576 timeToLiveSeconds="100"
577 overflowToDisk="false">
578 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
579 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
580 </cache>
581
582 <cache name="sampleCache44"
583 maxElementsInMemory="10"
584 eternal="false"
585 timeToLiveSeconds="100"
586 overflowToDisk="false">
587 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
588 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
589 </cache>
590
591 <cache name="sampleCache45"
592 maxElementsInMemory="10"
593 eternal="false"
594 timeToLiveSeconds="100"
595 overflowToDisk="false">
596 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
597 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
598 </cache>
599
600 <cache name="sampleCache46"
601 maxElementsInMemory="10"
602 eternal="false"
603 timeToLiveSeconds="100"
604 overflowToDisk="false">
605 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
606 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
607 </cache>
608
609 <cache name="sampleCache47"
610 maxElementsInMemory="10"
611 eternal="false"
612 timeToLiveSeconds="100"
613 overflowToDisk="false">
614 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
615 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
616 </cache>
617
618 <cache name="sampleCache48"
619 maxElementsInMemory="10"
620 eternal="false"
621 timeToLiveSeconds="100"
622 overflowToDisk="false">
623 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
624 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
625 </cache>
626
627 <cache name="sampleCache49"
628 maxElementsInMemory="10"
629 eternal="false"
630 timeToLiveSeconds="100"
631 overflowToDisk="false">
632 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
633 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
634 </cache>
635
636 <cache name="sampleCache50"
637 maxElementsInMemory="10"
638 eternal="false"
639 timeToLiveSeconds="100"
640 overflowToDisk="false">
641 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
642 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
643 </cache>
644
645 <cache name="sampleCache51"
646 maxElementsInMemory="10"
647 eternal="false"
648 timeToLiveSeconds="100"
649 overflowToDisk="false">
650 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
651 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
652 </cache>
653
654 <cache name="sampleCache52"
655 maxElementsInMemory="10"
656 eternal="false"
657 timeToLiveSeconds="100"
658 overflowToDisk="false">
659 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
660 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
661 </cache>
662
663 <cache name="sampleCache53"
664 maxElementsInMemory="10"
665 eternal="false"
666 timeToLiveSeconds="100"
667 overflowToDisk="false">
668 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
669 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
670 </cache>
671
672 <cache name="sampleCache54"
673 maxElementsInMemory="10"
674 eternal="false"
675 timeToLiveSeconds="100"
676 overflowToDisk="false">
677 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
678 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
679 </cache>
680
681 <cache name="sampleCache55"
682 maxElementsInMemory="10"
683 eternal="false"
684 timeToLiveSeconds="100"
685 overflowToDisk="false">
686 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
687 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
688 </cache>
689
690 <cache name="sampleCache56"
691 maxElementsInMemory="10"
692 eternal="false"
693 timeToLiveSeconds="100"
694 overflowToDisk="false">
695 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
696 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
697 </cache>
698
699 <!-- Sample cache named sampleCacheNoIdle, which does not specify the optional idle time -->
700 <cache name="sampleCacheNoIdle"
701 maxElementsInMemory="1000"
702 eternal="false"
703 timeToLiveSeconds="5"
704 overflowToDisk="false"
705 />
706
707 <!-- Sample cache named sampleCacheNotEternalButNoIdleOrExpiry -->
708 <cache name="sampleCacheNotEternalButNoIdleOrExpiry"
709 maxElementsInMemory="1000"
710 eternal="false"
711 overflowToDisk="false"
712 />
713
714 <!-- A cache with short idle and live expiries, suitable for tests -->
715 <cache name="sampleIdlingExpiringCache"
716 maxElementsInMemory="1"
717 eternal="false"
718 timeToIdleSeconds="2"
719 timeToLiveSeconds="5"
720 overflowToDisk="true"
721 />
722
723 <!-- A cache which overflows to disk. The disk store is persistent
724 between cache and VM restarts. The disk expiry thread interval is set to 10 minutes, overriding
725 the default of 2 minutes. -->
726 <cache name="persistentLongExpiryIntervalCache"
727 maxElementsInMemory="500"
728 eternal="false"
729 timeToIdleSeconds="300"
730 timeToLiveSeconds="600"
731 overflowToDisk="true"
732 diskPersistent="true"
733 diskExpiryThreadIntervalSeconds="600"
734 />
735
736 <!-- Page Caches -->
737
738 <cache name="CachedLogin"
739 maxElementsInMemory="10"
740 eternal="false"
741 timeToIdleSeconds="10000"
742 timeToLiveSeconds="10000"
743 overflowToDisk="true"
744 />
745
746 <cache name="FooterPageCache"
747 maxElementsInMemory="10"
748 eternal="false"
749 timeToIdleSeconds="10000"
750 timeToLiveSeconds="10000"
751 overflowToDisk="true"
752 />
753
754 </ehcache>