forked from ehcache/ehcache3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathehcache-core.xsd
738 lines (701 loc) · 28.8 KB
/
ehcache-core.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
<?xml version="1.0"?>
<!--
~ Copyright Terracotta, Inc.
~ Copyright IBM Corp. 2024, 2025
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<xs:schema version="1.0" xmlns:ehcache="http://www.ehcache.org/v3" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:version="2.0"
xmlns:annox="http://annox.dev.java.net" jaxb:extensionBindingPrefixes="annox"
elementFormDefault="qualified" targetNamespace="http://www.ehcache.org/v3">
<xs:annotation>
<xs:appinfo>
<jaxb:schemaBindings>
<jaxb:package name="org.ehcache.xml.model"/>
</jaxb:schemaBindings>
</xs:appinfo>
</xs:annotation>
<xs:element name="config" type="ehcache:config-type"/>
<xs:complexType name="config-type">
<xs:sequence>
<xs:element name="service" type="ehcache:service-type" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation xml:lang="en">
Placeholder for services to be managed by the CacheManager and exposed to the Cache instances it manages.
Those services will also be lifecycled by the CacheManager.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="default-serializers" type="ehcache:serializer-type" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation xml:lang="en">
This element represents Serializers.
It is a collection of serializer tags that require a type and fully qualified class names of serializers
that are to be registered
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="default-copiers" type="ehcache:copier-type" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation xml:lang="en">
This element represents Copiers.
It is a collection of copier tags that require a type and fully qualified class names of copiers
that are to be registered
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="persistence" type="ehcache:persistence-type" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation xml:lang="en">
Location where data needs be stored on disk
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="thread-pools" type="ehcache:thread-pools-type" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation xml:lang="en">
This element configures the sets of constrained threads used to run asynchronous tasks for the caches of this manager.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="event-dispatch" type="ehcache:thread-pool-reference-type" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation xml:lang="en">
The element configures the default thread pool used for cache event dispatch.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="write-behind" type="ehcache:thread-pool-reference-type" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation xml:lang="en">
The element configures the default thread pool used for write behind caches.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="shared-resources" type="ehcache:resources-type" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation xml:lang="en">
Resources that are available for sharing across multiple caches managed through ARC.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="heap-store" type="ehcache:sizeof-type" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation xml:lang="en">
The element defines the sizing limits for the default SizeOfEngine.
DEPRECATED: Memory units for heap resources, which are the primary use-case for size-of-engines, are deprecated.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="disk-store" type="ehcache:thread-pool-reference-type" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation xml:lang="en">
The element configures the default thread pool used for writing to disk resources.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="cache" type="ehcache:cache-type">
<xs:annotation>
<xs:documentation xml:lang="en">
A cache definition the CacheManager will manage
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="cache-template" type="ehcache:cache-template-type">
<xs:annotation>
<xs:documentation xml:lang="en">
A cache template definition that can be reference in <cache> definitions using the 'uses-template'
attribute.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
</xs:sequence>
</xs:complexType>
<xs:complexType name="service-type">
<xs:sequence>
<xs:element ref="ehcache:service-creation-configuration" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:element name="service-creation-configuration" abstract="true">
<xs:annotation>
<xs:appinfo>
<jaxb:dom/>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:complexType name="persistence-type">
<xs:attribute name="directory" type="ehcache:stringWithProperties" use="required"/>
</xs:complexType>
<xs:complexType name="serializer-type">
<xs:sequence>
<xs:element name="serializer" maxOccurs="unbounded" minOccurs="0">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="ehcache:fqcn-type">
<xs:attribute type="xs:string" name="type" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="copier-type">
<xs:sequence>
<xs:element name="copier" maxOccurs="unbounded" minOccurs="0">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="ehcache:fqcn-type">
<xs:attribute type="xs:string" name="type" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="thread-pools-type">
<xs:sequence>
<xs:element name="thread-pool" maxOccurs="unbounded" minOccurs="1">
<xs:complexType>
<xs:attribute name="alias" use="required" type="xs:string"/>
<xs:attribute name="default" use="optional" type="xs:boolean" default="false"/>
<xs:attribute name="min-size" use="required" type="ehcache:propertyOrNonNegativeInteger"/>
<xs:attribute name="max-size" use="required" type="ehcache:propertyOrPositiveInteger"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="thread-pool-reference-type">
<xs:attribute name="thread-pool" use="required" type="xs:string"/>
</xs:complexType>
<xs:complexType name="sizeof-type">
<xs:sequence>
<xs:element name="max-object-graph-size" minOccurs="0" maxOccurs="1" default="1000">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:positiveInteger"/>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="max-object-size" minOccurs="0" maxOccurs="1" type="ehcache:memory-type" default="9223372036854775807"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="cache-type">
<xs:complexContent>
<xs:extension base="ehcache:base-cache-type">
<xs:attribute name="alias" use="required" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="en">
The alias used to access this Cache from the CacheManager
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="uses-template" use="optional" type="xs:IDREF">
<xs:annotation>
<xs:documentation xml:lang="en">
The optional <cache-template> to use to source a default configuration from.
References the cache template's 'name' attribute.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="cache-template-type">
<xs:complexContent>
<xs:extension base="ehcache:base-cache-type">
<xs:attribute name="name" type="xs:ID" use="required">
<xs:annotation>
<xs:documentation xml:lang="en">
The name of this <cache-template> definition.
Used by cache element's 'uses-template' attribute.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="base-cache-type" abstract="true">
<xs:sequence>
<xs:element name="key-type" type="ehcache:cache-entry-type" minOccurs="0" maxOccurs="1" default="java.lang.Object">
<xs:annotation>
<xs:documentation xml:lang="en">
Defines the type for the keys <K> of the Cache<K, V>. Takes a fully qualified class name.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="value-type" type="ehcache:cache-entry-type" minOccurs="0" maxOccurs="1" default="java.lang.Object">
<xs:annotation>
<xs:documentation xml:lang="en">
Defines the type for the values <V> of the Cache<K, V>. Takes a fully qualified class name.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="expiry" type="ehcache:expiry-type" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation xml:lang="en">
Defines expiry for the Cache.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="eviction-advisor" type="ehcache:fqcn-type" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation xml:lang="en">
A fully qualified class name to a concrete type that implements
org.ehcache.config.EvictionAdvisor and has a public default no argument constructor.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="loader-writer" type="ehcache:cache-loader-writer-type" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation xml:lang="en">
Configures the Cache as fronting a system of record that it'll be kept in sync with.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="resilience" type="ehcache:fqcn-type" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation xml:lang="en">
Configures the resilience strategy used when the cache's underlying storage fails.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="listeners" type="ehcache:listeners-type" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation xml:lang="en">
Configures the listeners for the Cache.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:choice minOccurs="0" maxOccurs="1">
<xs:element ref="ehcache:heap" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation xml:lang="en">
Shortcut for configuring a heap Cache.
DEPRECATED: The use of memory units (such as 'B', 'kB' or 'MB') for heap resources is deprecated and will be removed in a future version.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="resources" type="ehcache:resources-type" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation xml:lang="en">
Configures the Cache resources.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
<xs:element name="heap-store-settings" type="ehcache:sizeof-type" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation xml:lang="en">
The element defines the sizing limits for the Cache's SizeOfEngine.
DEPRECATED: Memory units for heap resources, which are the primary use-case for size-of-engines, are deprecated.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="disk-store-settings" type="ehcache:disk-store-settings-type" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation xml:lang="en">
Configures advanced properties of the disk tier
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="ehcache:service-configuration" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:element name="service-configuration" abstract="true">
<xs:annotation>
<xs:appinfo>
<jaxb:dom/>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:complexType name="listeners-type">
<xs:sequence>
<xs:element name="listener" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="class" type="ehcache:fqcn-type" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation xml:lang="en">
A fully qualified class name to a concrete type that implements
org.ehcache.spi.event.CacheEventListener and has a public
default no argument constructor.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="event-firing-mode" type="ehcache:event-firing-type" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation xml:lang="en">
Indicates which EventFiring firing mode to use
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="event-ordering-mode" type="ehcache:event-ordering-type" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation xml:lang="en">
Indicates which EventOrdering ordering mode to use
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="events-to-fire-on" type="ehcache:event-type" minOccurs="1" maxOccurs="5">
<xs:annotation>
<xs:documentation xml:lang="en">
Indicates on which EventType an event has to be fired
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="dispatcher-thread-pool" type="xs:string" use="optional"/>
</xs:complexType>
<xs:complexType name="cache-loader-writer-type">
<xs:sequence>
<xs:element name="class" type="ehcache:fqcn-type" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation xml:lang="en">
A fully qualified class name to a concrete type that implements
org.ehcache.spi.loaderwriter.CacheLoaderWriter and has a public
default no argument constructor.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="write-behind" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:choice>
<xs:element name="batching">
<xs:complexType>
<xs:all minOccurs="1">
<xs:element name="max-write-delay" type="ehcache:time-type-with-prop-subst"/>
</xs:all>
<xs:attribute name="batch-size" type="ehcache:propertyOrPositiveInteger" use="required"/>
<xs:attribute name="coalesce" type="xs:boolean" default="false" use="optional"/>
</xs:complexType>
</xs:element>
<xs:element name="non-batching">
<xs:complexType/>
</xs:element>
</xs:choice>
</xs:sequence>
<xs:attribute name="concurrency" type="ehcache:propertyOrPositiveInteger" default="1" use="optional"/>
<xs:attribute name="size" type="ehcache:propertyOrPositiveInteger" default="2147483647" use="optional"/>
<xs:attribute name="thread-pool" type="xs:string" use="optional"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="cache-entry-type">
<xs:simpleContent>
<xs:extension base="ehcache:fqcn-type">
<xs:attribute name="serializer" type="ehcache:fqcn-type">
<xs:annotation>
<xs:documentation xml:lang="en">
A fully qualified class name of the type's serializer class.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="copier" type="ehcache:fqcn-type">
<xs:annotation>
<xs:documentation xml:lang="en">
A fully qualified class name of the type's copier class.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="expiry-type">
<xs:choice>
<xs:element name="class" type="ehcache:fqcn-type">
<xs:annotation>
<xs:documentation xml:lang="en">
A fully qualified class name to a concrete type that implements
org.ehcache.expiry.ExpiryPolicy and has a public default no argument constructor.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="tti" type="ehcache:time-type-with-prop-subst">
<xs:annotation>
<xs:documentation xml:lang="en">
Entries in the cache should expire if not accessed for the defined time.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ttl" type="ehcache:time-type-with-prop-subst">
<xs:annotation>
<xs:documentation xml:lang="en">
Entries in the cache should expire after the defined time.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="none">
<xs:annotation>
<xs:documentation xml:lang="en">
Entries in the cache should never expire.
</xs:documentation>
</xs:annotation>
<xs:complexType/>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:complexType name="time-type-with-prop-subst">
<xs:simpleContent>
<xs:extension base="ehcache:propertyOrPositiveInteger">
<xs:attribute name="unit" type="ehcache:time-unit" default="seconds">
<xs:annotation>
<xs:documentation xml:lang="en">
The time unit (see java.util.concurrent.TimeUnit) this value is expressed in.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="memory-type">
<xs:simpleContent>
<xs:extension base="xs:positiveInteger">
<xs:attributeGroup ref="ehcache:memory-unit-attributes"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="memory-type-with-prop-subst">
<xs:simpleContent>
<xs:extension base="ehcache:propertyOrPositiveInteger">
<xs:attributeGroup ref="ehcache:memory-unit-attributes"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:attributeGroup name="memory-unit-attributes">
<xs:attribute name="unit" type="ehcache:memory-unit" default="B" use="optional">
<xs:annotation>
<xs:documentation xml:lang="en">
The memory unit (see org.ehcache.config.units.MemoryUnit) this value is expressed in.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:attributeGroup>
<xs:complexType name="resource-type-with-prop-subst">
<xs:simpleContent>
<xs:extension base="ehcache:propertyOrPositiveInteger">
<xs:attribute name="unit" type="ehcache:resource-unit" default="entries" use="optional">
<xs:annotation>
<xs:documentation xml:lang="en">
The resource unit (see org.ehcache.config.ResourceUnit) this value is expressed in.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="persistable-memory-type-with-prop-subst">
<xs:complexContent>
<xs:extension base="ehcache:memory-type-with-prop-subst">
<xs:attribute name="persistent" type="xs:boolean" default="false" use="optional"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="resource" abstract="true">
<xs:annotation>
<xs:appinfo>
<jaxb:dom/>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="heap" type="ehcache:resource-type-with-prop-subst" substitutionGroup="ehcache:resource">
<xs:annotation>
<xs:appinfo>
<jaxb:class/>
</xs:appinfo>
<xs:appinfo>
<annox:annotate>@java.lang.SuppressWarnings({"unchecked", "serial"})</annox:annotate>
<xs:documentation>
DEPRECATED: The use of memory units (such as 'B', 'kB' or 'MB') for heap resources is deprecated and will be removed in a future version.
</xs:documentation>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="offheap" type="ehcache:memory-type-with-prop-subst" substitutionGroup="ehcache:resource">
<xs:annotation>
<xs:appinfo>
<jaxb:class/>
</xs:appinfo>
<xs:appinfo>
<annox:annotate>@java.lang.SuppressWarnings({"unchecked", "serial"})</annox:annotate>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="disk" type="ehcache:persistable-memory-type-with-prop-subst" substitutionGroup="ehcache:resource">
<xs:annotation>
<xs:appinfo>
<jaxb:class/>
</xs:appinfo>
<xs:appinfo>
<annox:annotate>@java.lang.SuppressWarnings({"unchecked", "serial"})</annox:annotate>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="sharedHeap" type="xs:string" substitutionGroup="ehcache:resource">
<xs:annotation>
<xs:appinfo>
<jaxb:class/>
</xs:appinfo>
<xs:appinfo>
<annox:annotate>@java.lang.SuppressWarnings({"unchecked", "serial"})</annox:annotate>
<xs:documentation>
Used to inform the cache manager that a shared heap resource should be used to manage this cache's heap entries.
</xs:documentation>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="sharedOffheap" type="xs:string" substitutionGroup="ehcache:resource">
<xs:annotation>
<xs:appinfo>
<jaxb:class/>
</xs:appinfo>
<xs:appinfo>
<annox:annotate>@java.lang.SuppressWarnings({"unchecked", "serial"})</annox:annotate>
<xs:documentation>
Used to inform the cache manager that a shared offheap resource should be used to manage this cache's offheap entries.
</xs:documentation>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="sharedDisk" type="xs:string" substitutionGroup="ehcache:resource">
<xs:annotation>
<xs:appinfo>
<jaxb:class/>
</xs:appinfo>
<xs:appinfo>
<annox:annotate>@java.lang.SuppressWarnings({"unchecked", "serial"})</annox:annotate>
<xs:documentation>
Used to inform the cache manager that a shared disk resource should be used to manage this cache's offheap entries.
</xs:documentation>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:complexType name="resources-type">
<xs:sequence>
<xs:element ref="ehcache:resource" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="disk-store-settings-type">
<xs:attribute name="thread-pool" type="xs:string" use="optional"/>
<xs:attribute name="writer-concurrency" type="ehcache:propertyOrPositiveInteger" use="optional" default="1"/>
<xs:attribute name="disk-segments" type="ehcache:propertyOrPositiveInteger" use="optional" default="16"/>
</xs:complexType>
<xs:simpleType name="time-unit">
<xs:restriction base="xs:string">
<xs:enumeration value="nanos"/>
<xs:enumeration value="micros"/>
<xs:enumeration value="millis"/>
<xs:enumeration value="seconds"/>
<xs:enumeration value="minutes"/>
<xs:enumeration value="hours"/>
<xs:enumeration value="days"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="memory-unit">
<xs:restriction base="xs:string">
<xs:enumeration value="B"/>
<xs:enumeration value="kB"/>
<xs:enumeration value="MB"/>
<xs:enumeration value="GB"/>
<xs:enumeration value="TB"/>
<xs:enumeration value="PB"/>
</xs:restriction>
</xs:simpleType>
<!-- Keeping the below explicit instead of union with the above to ease auto complete -->
<xs:simpleType name="resource-unit">
<xs:restriction base="xs:string">
<xs:enumeration value="entries"/>
<xs:enumeration value="B"/>
<xs:enumeration value="kB"/>
<xs:enumeration value="MB"/>
<xs:enumeration value="GB"/>
<xs:enumeration value="TB"/>
<xs:enumeration value="PB"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="event-firing-type">
<xs:restriction base="xs:string">
<xs:enumeration value="ASYNCHRONOUS" />
<xs:enumeration value="SYNCHRONOUS" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="event-ordering-type">
<xs:restriction base="xs:string">
<xs:enumeration value="UNORDERED" />
<xs:enumeration value="ORDERED" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="event-type">
<xs:restriction base="xs:string">
<xs:enumeration value="EVICTED" />
<xs:enumeration value="EXPIRED" />
<xs:enumeration value="REMOVED" />
<xs:enumeration value="CREATED" />
<xs:enumeration value="UPDATED" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="fqcn-type">
<xs:restriction base="xs:string">
<xs:whiteSpace value="collapse"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="propertyOrString">
<xs:annotation>
<xs:appinfo>
<jaxb:javaType name="java.lang.String" parseMethod="org.ehcache.xml.ParsingUtil.parsePropertyOrString"/>
</xs:appinfo>
</xs:annotation>
<xs:union memberTypes="ehcache:propertyReference">
<xs:simpleType>
<xs:restriction base="xs:string">
</xs:restriction>
</xs:simpleType>
</xs:union>
</xs:simpleType>
<xs:simpleType name="propertyOrPositiveInteger">
<xs:annotation>
<xs:appinfo>
<jaxb:javaType name="java.math.BigInteger" parseMethod="org.ehcache.xml.ParsingUtil.parsePropertyOrPositiveInteger"/>
</xs:appinfo>
</xs:annotation>
<xs:union memberTypes="ehcache:propertyReference xs:positiveInteger"/>
</xs:simpleType>
<xs:simpleType name="propertyOrNonNegativeInteger">
<xs:annotation>
<xs:appinfo>
<jaxb:javaType name="java.math.BigInteger" parseMethod="org.ehcache.xml.ParsingUtil.parsePropertyOrNonNegativeInteger"/>
</xs:appinfo>
</xs:annotation>
<xs:union memberTypes="ehcache:propertyReference xs:nonNegativeInteger"/>
</xs:simpleType>
<xs:simpleType name="stringWithProperties">
<xs:annotation>
<xs:appinfo>
<jaxb:javaType name="java.lang.String" parseMethod="org.ehcache.xml.ParsingUtil.parseStringWithProperties"/>
</xs:appinfo>
</xs:annotation>
<xs:restriction base="xs:string"/>
</xs:simpleType>
<xs:simpleType name="propertyReference">
<xs:restriction base="xs:string">
<xs:pattern value="\s*$\{[^{}]+\}\s*"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>