ehcache.xsd 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  1. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="1.7">
  2. <xs:element name="ehcache">
  3. <xs:complexType>
  4. <xs:sequence>
  5. <xs:element maxOccurs="1" minOccurs="0" ref="diskStore"/>
  6. <xs:element maxOccurs="1" minOccurs="0" ref="sizeOfPolicy"/>
  7. <xs:element maxOccurs="1" minOccurs="0" ref="transactionManagerLookup"/>
  8. <xs:element maxOccurs="1" minOccurs="0" ref="cacheManagerEventListenerFactory"/>
  9. <xs:element maxOccurs="1" minOccurs="0" ref="managementRESTService"/>
  10. <xs:element maxOccurs="unbounded" minOccurs="0" ref="cacheManagerPeerProviderFactory"/>
  11. <xs:element maxOccurs="unbounded" minOccurs="0" ref="cacheManagerPeerListenerFactory"/>
  12. <xs:element maxOccurs="1" minOccurs="0" ref="terracottaConfig"/>
  13. <xs:element maxOccurs="1" minOccurs="0" ref="defaultCache"/>
  14. <xs:element maxOccurs="unbounded" minOccurs="0" ref="cache"/>
  15. </xs:sequence>
  16. <xs:attribute name="name" use="optional"/>
  17. <xs:attribute default="true" name="updateCheck" type="xs:boolean" use="optional"/>
  18. <xs:attribute default="autodetect" name="monitoring" type="monitoringType" use="optional"/>
  19. <xs:attribute default="true" name="dynamicConfig" type="xs:boolean" use="optional"/>
  20. <xs:attribute default="15" name="defaultTransactionTimeoutInSeconds" type="xs:integer" use="optional"/>
  21. <xs:attribute default="0" name="maxBytesLocalHeap" type="memoryUnitOrPercentage" use="optional"/>
  22. <xs:attribute default="0" name="maxBytesLocalOffHeap" type="memoryUnit" use="optional"/>
  23. <xs:attribute default="0" name="maxBytesLocalDisk" type="memoryUnit" use="optional"/>
  24. </xs:complexType>
  25. </xs:element>
  26. <xs:element name="managementRESTService">
  27. <xs:complexType>
  28. <xs:attribute name="enabled" type="xs:boolean" use="optional"/>
  29. <xs:attribute name="bind" use="optional"/>
  30. <xs:attribute name="securityServiceLocation" use="optional"/>
  31. <xs:attribute name="securityServiceTimeout" use="optional" type="xs:integer"/>
  32. <xs:attribute name="sslEnabled" use="optional" type="xs:boolean"/>
  33. <xs:attribute name="needClientAuth" use="optional" type="xs:boolean"/>
  34. <xs:attribute name="sampleHistorySize" use="optional" type="xs:integer"/>
  35. <xs:attribute name="sampleIntervalSeconds" use="optional" type="xs:integer"/>
  36. <xs:attribute name="sampleSearchIntervalSeconds" use="optional" type="xs:integer"/>
  37. </xs:complexType>
  38. </xs:element>
  39. <xs:element name="diskStore">
  40. <xs:complexType>
  41. <xs:attribute name="path" use="optional"/>
  42. </xs:complexType>
  43. </xs:element>
  44. <xs:element name="transactionManagerLookup">
  45. <xs:complexType>
  46. <xs:attribute name="class" use="required"/>
  47. <xs:attribute name="properties" use="optional"/>
  48. <xs:attribute name="propertySeparator" use="optional"/>
  49. </xs:complexType>
  50. </xs:element>
  51. <xs:element name="cacheManagerEventListenerFactory">
  52. <xs:complexType>
  53. <xs:attribute name="class" use="required"/>
  54. <xs:attribute name="properties" use="optional"/>
  55. <xs:attribute name="propertySeparator" use="optional"/>
  56. </xs:complexType>
  57. </xs:element>
  58. <xs:element name="cacheManagerPeerProviderFactory">
  59. <xs:complexType>
  60. <xs:attribute name="class" use="required"/>
  61. <xs:attribute name="properties" use="optional"/>
  62. <xs:attribute name="propertySeparator" use="optional"/>
  63. </xs:complexType>
  64. </xs:element>
  65. <xs:element name="cacheManagerPeerListenerFactory">
  66. <xs:complexType>
  67. <xs:attribute name="class" use="required"/>
  68. <xs:attribute name="properties" use="optional"/>
  69. <xs:attribute name="propertySeparator" use="optional"/>
  70. </xs:complexType>
  71. </xs:element>
  72. <xs:element name="terracottaConfig">
  73. <xs:complexType>
  74. <xs:sequence>
  75. <xs:element maxOccurs="1" minOccurs="0" name="tc-config">
  76. <xs:complexType>
  77. <xs:sequence>
  78. <xs:any maxOccurs="unbounded" minOccurs="0" processContents="skip"/>
  79. </xs:sequence>
  80. </xs:complexType>
  81. </xs:element>
  82. </xs:sequence>
  83. <xs:attribute default="localhost:9510" name="url" use="optional"/>
  84. <xs:attribute name="rejoin" type="xs:boolean" use="optional" default="false"/>
  85. <xs:attribute name="wanEnabledTSA" type="xs:boolean" use="optional" default="false"/>
  86. </xs:complexType>
  87. </xs:element>
  88. <!--
  89. add clone support for addition of cacheExceptionHandler. Important!
  90. -->
  91. <xs:element name="defaultCache">
  92. <xs:complexType>
  93. <xs:sequence>
  94. <xs:element minOccurs="0" maxOccurs="unbounded" ref="cacheEventListenerFactory"/>
  95. <xs:element minOccurs="0" maxOccurs="unbounded" ref="cacheExtensionFactory"/>
  96. <xs:element minOccurs="0" maxOccurs="unbounded" ref="cacheLoaderFactory"/>
  97. <xs:element minOccurs="0" maxOccurs="unbounded" ref="cacheDecoratorFactory"/>
  98. <xs:element minOccurs="0" maxOccurs="1" ref="bootstrapCacheLoaderFactory"/>
  99. <xs:element minOccurs="0" maxOccurs="1" ref="cacheExceptionHandlerFactory"/>
  100. <xs:element minOccurs="0" maxOccurs="1" ref="pinning"/>
  101. <xs:element minOccurs="0" maxOccurs="1" ref="terracotta"/>
  102. <xs:element minOccurs="0" maxOccurs="1" ref="cacheWriter"/>
  103. <xs:element minOccurs="0" maxOccurs="1" ref="copyStrategy"/>
  104. <xs:element minOccurs="0" maxOccurs="1" ref="elementValueComparator"/>
  105. <xs:element minOccurs="0" maxOccurs="1" ref="sizeOfPolicy"/>
  106. <xs:element minOccurs="0" maxOccurs="1" ref="persistence"/>
  107. </xs:sequence>
  108. <xs:attribute name="diskExpiryThreadIntervalSeconds" type="xs:integer" use="optional"/>
  109. <xs:attribute name="diskSpoolBufferSizeMB" type="xs:integer" use="optional"/>
  110. <xs:attribute name="diskPersistent" type="xs:boolean" use="optional"/>
  111. <xs:attribute name="diskAccessStripes" type="xs:integer" use="optional" default="1"/>
  112. <xs:attribute name="eternal" type="xs:boolean" use="optional" default="false"/>
  113. <xs:attribute name="maxElementsInMemory" type="xs:nonNegativeInteger" use="optional"/>
  114. <xs:attribute name="maxEntriesLocalHeap" type="xs:nonNegativeInteger" use="optional"/>
  115. <xs:attribute name="clearOnFlush" type="xs:boolean" use="optional"/>
  116. <xs:attribute name="memoryStoreEvictionPolicy" type="xs:string" use="optional"/>
  117. <xs:attribute name="overflowToDisk" type="xs:boolean" use="optional"/>
  118. <xs:attribute name="timeToIdleSeconds" type="xs:nonNegativeInteger" use="optional"/>
  119. <xs:attribute name="timeToLiveSeconds" type="xs:nonNegativeInteger" use="optional"/>
  120. <xs:attribute name="maxElementsOnDisk" type="xs:nonNegativeInteger" use="optional"/>
  121. <xs:attribute name="maxEntriesLocalDisk" type="xs:nonNegativeInteger" use="optional"/>
  122. <xs:attribute name="transactionalMode" type="transactionalMode" use="optional" default="off"/>
  123. <xs:attribute name="statistics" type="xs:boolean" use="optional" default="false"/>
  124. <xs:attribute name="copyOnRead" type="xs:boolean" use="optional" default="false"/>
  125. <xs:attribute name="copyOnWrite" type="xs:boolean" use="optional" default="false"/>
  126. <xs:attribute name="cacheLoaderTimeoutMillis" type="xs:integer" use="optional" default="0"/>
  127. <xs:attribute name="overflowToOffHeap" type="xs:boolean" use="optional" default="false"/>
  128. <xs:attribute name="maxMemoryOffHeap" type="xs:string" use="optional"/>
  129. </xs:complexType>
  130. </xs:element>
  131. <xs:element name="cache">
  132. <xs:complexType>
  133. <xs:sequence>
  134. <xs:element minOccurs="0" maxOccurs="unbounded" ref="cacheEventListenerFactory"/>
  135. <xs:element minOccurs="0" maxOccurs="unbounded" ref="cacheExtensionFactory"/>
  136. <xs:element minOccurs="0" maxOccurs="unbounded" ref="cacheLoaderFactory"/>
  137. <xs:element minOccurs="0" maxOccurs="unbounded" ref="cacheDecoratorFactory"/>
  138. <xs:element minOccurs="0" maxOccurs="1" ref="bootstrapCacheLoaderFactory"/>
  139. <xs:element minOccurs="0" maxOccurs="1" ref="cacheExceptionHandlerFactory"/>
  140. <xs:element minOccurs="0" maxOccurs="1" ref="pinning"/>
  141. <xs:element minOccurs="0" maxOccurs="1" ref="terracotta"/>
  142. <xs:element minOccurs="0" maxOccurs="1" ref="cacheWriter"/>
  143. <xs:element minOccurs="0" maxOccurs="1" ref="copyStrategy"/>
  144. <xs:element minOccurs="0" maxOccurs="1" ref="searchable"/>
  145. <xs:element minOccurs="0" maxOccurs="1" ref="elementValueComparator"/>
  146. <xs:element minOccurs="0" maxOccurs="1" ref="sizeOfPolicy"/>
  147. <xs:element minOccurs="0" maxOccurs="1" ref="persistence"/>
  148. </xs:sequence>
  149. <xs:attribute name="diskExpiryThreadIntervalSeconds" type="xs:integer" use="optional"/>
  150. <xs:attribute name="diskSpoolBufferSizeMB" type="xs:integer" use="optional"/>
  151. <xs:attribute name="diskPersistent" type="xs:boolean" use="optional"/>
  152. <xs:attribute name="diskAccessStripes" type="xs:integer" use="optional" default="1"/>
  153. <xs:attribute name="eternal" type="xs:boolean" use="optional" default="false"/>
  154. <xs:attribute name="maxElementsInMemory" type="xs:nonNegativeInteger" use="optional"/>
  155. <xs:attribute name="maxEntriesLocalHeap" type="xs:nonNegativeInteger" use="optional"/>
  156. <xs:attribute name="memoryStoreEvictionPolicy" type="xs:string" use="optional"/>
  157. <xs:attribute name="clearOnFlush" type="xs:boolean" use="optional"/>
  158. <xs:attribute name="name" type="xs:string" use="required"/>
  159. <xs:attribute name="overflowToDisk" type="xs:boolean" use="optional"/>
  160. <xs:attribute name="timeToIdleSeconds" type="xs:nonNegativeInteger" use="optional"/>
  161. <xs:attribute name="timeToLiveSeconds" type="xs:nonNegativeInteger" use="optional"/>
  162. <xs:attribute name="maxElementsOnDisk" type="xs:nonNegativeInteger" use="optional"/>
  163. <xs:attribute name="maxEntriesLocalDisk" type="xs:nonNegativeInteger" use="optional"/>
  164. <xs:attribute name="maxEntriesInCache" type="xs:nonNegativeInteger" use="optional"/>
  165. <xs:attribute name="transactionalMode" type="transactionalMode" use="optional" default="off"/>
  166. <xs:attribute name="statistics" type="xs:boolean" use="optional" default="false"/>
  167. <xs:attribute name="copyOnRead" type="xs:boolean" use="optional" default="false"/>
  168. <xs:attribute name="copyOnWrite" type="xs:boolean" use="optional" default="false"/>
  169. <xs:attribute name="logging" type="xs:boolean" use="optional" default="false"/>
  170. <xs:attribute name="cacheLoaderTimeoutMillis" type="xs:integer" use="optional" default="0"/>
  171. <xs:attribute name="overflowToOffHeap" type="xs:boolean" use="optional" default="false"/>
  172. <xs:attribute name="maxMemoryOffHeap" type="xs:string" use="optional"/>
  173. <xs:attribute default="0" name="maxBytesLocalHeap" type="memoryUnitOrPercentage" use="optional"/>
  174. <xs:attribute default="0" name="maxBytesLocalOffHeap" type="memoryUnitOrPercentage" use="optional"/>
  175. <xs:attribute default="0" name="maxBytesLocalDisk" type="memoryUnitOrPercentage" use="optional"/>
  176. </xs:complexType>
  177. </xs:element>
  178. <xs:element name="cacheEventListenerFactory">
  179. <xs:complexType>
  180. <xs:attribute name="class" use="required"/>
  181. <xs:attribute name="properties" use="optional"/>
  182. <xs:attribute name="propertySeparator" use="optional"/>
  183. <xs:attribute name="listenFor" use="optional" type="notificationScope" default="all"/>
  184. </xs:complexType>
  185. </xs:element>
  186. <xs:element name="bootstrapCacheLoaderFactory">
  187. <xs:complexType>
  188. <xs:attribute name="class" use="required"/>
  189. <xs:attribute name="properties" use="optional"/>
  190. <xs:attribute name="propertySeparator" use="optional"/>
  191. </xs:complexType>
  192. </xs:element>
  193. <xs:element name="cacheExtensionFactory">
  194. <xs:complexType>
  195. <xs:attribute name="class" use="required"/>
  196. <xs:attribute name="properties" use="optional"/>
  197. <xs:attribute name="propertySeparator" use="optional"/>
  198. </xs:complexType>
  199. </xs:element>
  200. <xs:element name="cacheExceptionHandlerFactory">
  201. <xs:complexType>
  202. <xs:attribute name="class" use="required"/>
  203. <xs:attribute name="properties" use="optional"/>
  204. <xs:attribute name="propertySeparator" use="optional"/>
  205. </xs:complexType>
  206. </xs:element>
  207. <xs:element name="cacheLoaderFactory">
  208. <xs:complexType>
  209. <xs:attribute name="class" use="required"/>
  210. <xs:attribute name="properties" use="optional"/>
  211. <xs:attribute name="propertySeparator" use="optional"/>
  212. </xs:complexType>
  213. </xs:element>
  214. <xs:element name="cacheDecoratorFactory">
  215. <xs:complexType>
  216. <xs:attribute name="class" use="required"/>
  217. <xs:attribute name="properties" use="optional"/>
  218. <xs:attribute name="propertySeparator" use="optional"/>
  219. </xs:complexType>
  220. </xs:element>
  221. <xs:element name="searchAttribute">
  222. <xs:complexType>
  223. <xs:attribute name="name" use="required" type="xs:string"/>
  224. <xs:attribute name="expression" type="xs:string"/>
  225. <xs:attribute name="class" type="xs:string"/>
  226. <xs:attribute name="type" type="xs:string" use="optional"/>
  227. <xs:attribute name="properties" use="optional"/>
  228. <xs:attribute name="propertySeparator" use="optional"/>
  229. </xs:complexType>
  230. </xs:element>
  231. <xs:element name="searchable">
  232. <xs:complexType>
  233. <xs:sequence>
  234. <xs:element minOccurs="0" maxOccurs="unbounded" ref="searchAttribute"/>
  235. </xs:sequence>
  236. <xs:attribute name="keys" use="optional" type="xs:boolean" default="true"/>
  237. <xs:attribute name="values" use="optional" type="xs:boolean" default="true"/>
  238. <xs:attribute name="allowDynamicIndexing" use="optional" type="xs:boolean" default="false"/>
  239. </xs:complexType>
  240. </xs:element>
  241. <xs:element name="pinning">
  242. <xs:complexType>
  243. <xs:attribute name="store" use="required" type="pinningStoreType"/>
  244. </xs:complexType>
  245. </xs:element>
  246. <xs:element name="terracotta">
  247. <xs:complexType>
  248. <xs:sequence>
  249. <xs:element minOccurs="0" maxOccurs="1" ref="nonstop"/>
  250. </xs:sequence>
  251. <xs:attribute name="clustered" use="optional" type="xs:boolean" default="true"/>
  252. <xs:attribute name="coherentReads" use="optional" type="xs:boolean" default="true"/>
  253. <xs:attribute name="localKeyCache" use="optional" type="xs:boolean" default="false"/>
  254. <xs:attribute name="localKeyCacheSize" use="optional" type="xs:positiveInteger" default="300000"/>
  255. <xs:attribute name="orphanEviction" use="optional" type="xs:boolean" default="true"/>
  256. <xs:attribute name="orphanEvictionPeriod" use="optional" type="xs:positiveInteger" default="4"/>
  257. <xs:attribute name="copyOnRead" use="optional" type="xs:boolean" default="false"/>
  258. <xs:attribute name="coherent" use="optional" type="xs:boolean" default="false"/>
  259. <xs:attribute name="consistency" use="optional" type="consistencyType" default="eventual"/>
  260. <xs:attribute name="synchronousWrites" use="optional" type="xs:boolean" default="false"/>
  261. <xs:attribute name="concurrency" use="optional" type="xs:nonNegativeInteger" default="0"/>
  262. <xs:attribute name="localCacheEnabled" use="optional" type="xs:boolean" default="true"/>
  263. <xs:attribute name="compressionEnabled" use="optional" type="xs:boolean" default="false"/>
  264. </xs:complexType>
  265. </xs:element>
  266. <xs:simpleType name="consistencyType">
  267. <xs:restriction base="xs:string">
  268. <xs:enumeration value="strong"/>
  269. <xs:enumeration value="eventual"/>
  270. </xs:restriction>
  271. </xs:simpleType>
  272. <xs:element name="nonstop">
  273. <xs:complexType>
  274. <xs:sequence>
  275. <xs:element minOccurs="0" maxOccurs="1" ref="timeoutBehavior"/>
  276. </xs:sequence>
  277. <xs:attribute name="enabled" use="optional" type="xs:boolean" default="true"/>
  278. <xs:attribute name="immediateTimeout" use="optional" type="xs:boolean" default="false"/>
  279. <xs:attribute name="timeoutMillis" use="optional" type="xs:positiveInteger" default="30000"/>
  280. <xs:attribute name="searchTimeoutMillis" use="optional" type="xs:positiveInteger" default="30000"/>
  281. </xs:complexType>
  282. </xs:element>
  283. <xs:element name="timeoutBehavior">
  284. <xs:complexType>
  285. <xs:attribute name="type" use="optional" type="timeoutBehaviorType" default="exception"/>
  286. <xs:attribute name="properties" use="optional" default=""/>
  287. <xs:attribute name="propertySeparator" use="optional" default=","/>
  288. </xs:complexType>
  289. </xs:element>
  290. <xs:simpleType name="timeoutBehaviorType">
  291. <xs:restriction base="xs:string">
  292. <xs:enumeration value="noop"/>
  293. <xs:enumeration value="exception"/>
  294. <xs:enumeration value="localReads"/>
  295. <xs:enumeration value="localReadsAndExceptionOnWrite"/>
  296. </xs:restriction>
  297. </xs:simpleType>
  298. <xs:simpleType name="monitoringType">
  299. <xs:restriction base="xs:string">
  300. <xs:enumeration value="autodetect"/>
  301. <xs:enumeration value="on"/>
  302. <xs:enumeration value="off"/>
  303. </xs:restriction>
  304. </xs:simpleType>
  305. <xs:simpleType name="pinningStoreType">
  306. <xs:restriction base="xs:string">
  307. <xs:enumeration value="localMemory"/>
  308. <xs:enumeration value="inCache"/>
  309. </xs:restriction>
  310. </xs:simpleType>
  311. <xs:simpleType name="terracottaCacheValueType">
  312. <xs:restriction base="xs:string">
  313. <xs:enumeration value="serialization"/>
  314. <xs:enumeration value="identity"/>
  315. </xs:restriction>
  316. </xs:simpleType>
  317. <xs:simpleType name="transactionalMode">
  318. <xs:restriction base="xs:string">
  319. <xs:enumeration value="off"/>
  320. <xs:enumeration value="xa_strict"/>
  321. <xs:enumeration value="xa"/>
  322. <xs:enumeration value="local"/>
  323. </xs:restriction>
  324. </xs:simpleType>
  325. <xs:element name="cacheWriter">
  326. <xs:complexType>
  327. <xs:sequence>
  328. <xs:element minOccurs="0" maxOccurs="1" ref="cacheWriterFactory"/>
  329. </xs:sequence>
  330. <xs:attribute name="writeMode" use="optional" type="writeModeType" default="write-through"/>
  331. <xs:attribute name="notifyListenersOnException" use="optional" type="xs:boolean" default="false"/>
  332. <xs:attribute name="minWriteDelay" use="optional" type="xs:nonNegativeInteger" default="1"/>
  333. <xs:attribute name="maxWriteDelay" use="optional" type="xs:nonNegativeInteger" default="1"/>
  334. <xs:attribute name="rateLimitPerSecond" use="optional" type="xs:nonNegativeInteger" default="0"/>
  335. <xs:attribute name="writeCoalescing" use="optional" type="xs:boolean" default="false"/>
  336. <xs:attribute name="writeBatching" use="optional" type="xs:boolean" default="false"/>
  337. <xs:attribute name="writeBatchSize" use="optional" type="xs:positiveInteger" default="1"/>
  338. <xs:attribute name="retryAttempts" use="optional" type="xs:nonNegativeInteger" default="0"/>
  339. <xs:attribute name="retryAttemptDelaySeconds" use="optional" type="xs:nonNegativeInteger" default="1"/>
  340. <xs:attribute name="writeBehindConcurrency" use="optional" type="xs:nonNegativeInteger" default="1"/>
  341. <xs:attribute name="writeBehindMaxQueueSize" use="optional" type="xs:nonNegativeInteger" default="0"/>
  342. </xs:complexType>
  343. </xs:element>
  344. <xs:simpleType name="writeModeType">
  345. <xs:restriction base="xs:string">
  346. <xs:enumeration value="write-through"/>
  347. <xs:enumeration value="write-behind"/>
  348. </xs:restriction>
  349. </xs:simpleType>
  350. <xs:element name="cacheWriterFactory">
  351. <xs:complexType>
  352. <xs:attribute name="class" use="required"/>
  353. <xs:attribute name="properties" use="optional"/>
  354. <xs:attribute name="propertySeparator" use="optional"/>
  355. </xs:complexType>
  356. </xs:element>
  357. <xs:element name="copyStrategy">
  358. <xs:complexType>
  359. <xs:attribute name="class" use="required" type="xs:string"/>
  360. </xs:complexType>
  361. </xs:element>
  362. <xs:element name="elementValueComparator">
  363. <xs:complexType>
  364. <xs:attribute name="class" use="required" type="xs:string"/>
  365. </xs:complexType>
  366. </xs:element>
  367. <xs:element name="sizeOfPolicy">
  368. <xs:complexType>
  369. <xs:attribute name="maxDepth" use="required" type="xs:integer"/>
  370. <xs:attribute name="maxDepthExceededBehavior" use="optional" default="continue" type="maxDepthExceededBehavior"/>
  371. </xs:complexType>
  372. </xs:element>
  373. <xs:element name="persistence">
  374. <xs:complexType>
  375. <xs:attribute name="strategy" use="required" type="persistenceStrategy"/>
  376. <xs:attribute name="synchronousWrites" use="optional" default="false" type="xs:boolean"/>
  377. </xs:complexType>
  378. </xs:element>
  379. <xs:simpleType name="persistenceStrategy">
  380. <xs:restriction base="xs:string">
  381. <xs:enumeration value="localTempSwap"/>
  382. <xs:enumeration value="localRestartable"/>
  383. <xs:enumeration value="none"/>
  384. <xs:enumeration value="distributed"/>
  385. </xs:restriction>
  386. </xs:simpleType>
  387. <xs:simpleType name="maxDepthExceededBehavior">
  388. <xs:restriction base="xs:string">
  389. <xs:enumeration value="continue"/>
  390. <xs:enumeration value="abort"/>
  391. </xs:restriction>
  392. </xs:simpleType>
  393. <xs:simpleType name="notificationScope">
  394. <xs:restriction base="xs:string">
  395. <xs:enumeration value="local"/>
  396. <xs:enumeration value="remote"/>
  397. <xs:enumeration value="all"/>
  398. </xs:restriction>
  399. </xs:simpleType>
  400. <xs:simpleType name="memoryUnit">
  401. <xs:restriction base="xs:token">
  402. <xs:pattern value="[0-9]+[bBkKmMgG]?"/>
  403. </xs:restriction>
  404. </xs:simpleType>
  405. <xs:simpleType name="memoryUnitOrPercentage">
  406. <xs:restriction base="xs:token">
  407. <xs:pattern value="([0-9]+[bBkKmMgG]?|100%|[0-9]{1,2}%)"/>
  408. </xs:restriction>
  409. </xs:simpleType>
  410. </xs:schema>