The disable-event-thread Element"

From Documentation
m (Created page with '{{ZKConfigurationReferencePageHeader}} =Version History= {{LastUpdated}} {| border='1px' | width="100%" ! Version !! Date !! Content |- |   |   |   |} {{ZKConfig…')
 
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{ZKConfigurationReferencePageHeader}}
 
{{ZKConfigurationReferencePageHeader}}
  
=Version History=
+
'''Syntax:'''
{{LastUpdated}}
+
<disable-event-thread>'''true'''|false</disable-event-thread>
{| border='1px' | width="100%"
+
 
! Version !! Date !! Content
+
{{deprecatedSince| 7.0.0}}
|-
+
Deprecated to enable the event thread according to Java Servlet Specification that may prohibit the creation of new threads
| &nbsp;
+
 
| &nbsp;
+
{{versionSince|3.0.0}}
| &nbsp;
+
[Default: false]
|}
+
{{versionSince|5.0.0}}
 +
[Default: true](disabled)
 +
 
 +
It specifies whether to disable the use of the event processing thread. If disabled, no event processing thread will be used at all. In other words, all events are processed in the same thread that serves HTTP requests (so-called Servlet thread) directly.
 +
 
 +
For better performance (and better compatibility with other frameworks), it is recommended to disable the use of the event processing thread. Please refer to [[ZK Developer's Reference/UI Patterns/Event Threads|ZK Developer's Reference: Event Threads]] for more information.
 +
 
 +
Enable the event thread only if the project does not need to integrate other frameworks (such as Spring), uses <javadoc>org.zkoss.zul.Messagebox</javadoc> and modal windows a lot, and does not have a lot of concurrent users.
  
 
{{ZKConfigurationReferencePageFooter}}
 
{{ZKConfigurationReferencePageFooter}}

Latest revision as of 02:33, 19 January 2024


The disable-event-thread Element


Syntax:

<disable-event-thread>true|false</disable-event-thread>

Deprecated Since 7.0.0

Deprecated to enable the event thread according to Java Servlet Specification that may prohibit the creation of new threads

Since 3.0.0

[Default: false]

Since 5.0.0

[Default: true](disabled)

It specifies whether to disable the use of the event processing thread. If disabled, no event processing thread will be used at all. In other words, all events are processed in the same thread that serves HTTP requests (so-called Servlet thread) directly.

For better performance (and better compatibility with other frameworks), it is recommended to disable the use of the event processing thread. Please refer to ZK Developer's Reference: Event Threads for more information.

Enable the event thread only if the project does not need to integrate other frameworks (such as Spring), uses Messagebox and modal windows a lot, and does not have a lot of concurrent users.



Last Update : 2024/01/19

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.