[jboss-cvs] JBossAS SVN: r90820 - projects/logging-service-metadata/trunk/src/main/resources/META-INF/schema.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sun Jul 5 14:37:30 EDT 2009


Author: david.lloyd at jboss.com
Date: 2009-07-05 14:37:30 -0400 (Sun, 05 Jul 2009)
New Revision: 90820

Modified:
   projects/logging-service-metadata/trunk/src/main/resources/META-INF/schema/jboss-logging_6_0.xsd
Log:
More options for async appender

Modified: projects/logging-service-metadata/trunk/src/main/resources/META-INF/schema/jboss-logging_6_0.xsd
===================================================================
--- projects/logging-service-metadata/trunk/src/main/resources/META-INF/schema/jboss-logging_6_0.xsd	2009-07-05 18:33:02 UTC (rev 90819)
+++ projects/logging-service-metadata/trunk/src/main/resources/META-INF/schema/jboss-logging_6_0.xsd	2009-07-05 18:37:30 UTC (rev 90820)
@@ -226,15 +226,6 @@
         </xs:annotation>
         <xs:complexContent>
             <xs:extension base="handlerBaseType">
-                <xs:all minOccurs="1" maxOccurs="1">
-                    <xs:element name="level" type="refType" minOccurs="0"/>
-                    <xs:element name="filter" type="filter" minOccurs="0"/>
-                    <xs:element name="formatter" type="formatterType" minOccurs="0"/>
-                    <xs:element name="loggers" type="loggersType" minOccurs="0"/>
-                    <xs:element name="properties" type="propertiesType" minOccurs="0"/>
-                    <xs:element name="error-manager" type="errorManagerType" minOccurs="0"/>
-                    <xs:element name="sub-handlers" type="handlersType" minOccurs="0"/>
-                </xs:all>
                 <xs:attribute name="class" type="xs:token" use="required"/>
             </xs:extension>
         </xs:complexContent>
@@ -328,10 +319,26 @@
             </xs:documentation>
         </xs:annotation>
         <xs:complexContent>
-            <xs:extension base="handlerBaseType"/>
+            <xs:extension base="handlerBaseType">
+                <xs:attribute name="queue-length" type="xs:positiveInteger" use="optional" default="512"/>
+                <xs:attribute name="overflow-action" type="asyncOverflowActionType" use="optional" default="block"/>
+            </xs:extension>
         </xs:complexContent>
     </xs:complexType>
 
+    <xs:simpleType name="asyncOverflowActionType">
+        <xs:annotation>
+            <xs:documentation>
+                The action to take when the async queue overflows.  Either the calling thread may be blocked, or the
+                message may be discarded.
+            </xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+            <xs:enumeration value="block"/>
+            <xs:enumeration value="discard"/>
+        </xs:restriction>
+    </xs:simpleType>
+
     <!-- Filters -->
 
     <xs:complexType name="filter">




More information about the jboss-cvs-commits mailing list