The max-suspended-threads Element"

From Documentation
m
m (correct highlight (via JWB))
 
(3 intermediate revisions by one other user not shown)
Line 6: Line 6:
 
  [Default: -1 ''(no limit)'']
 
  [Default: -1 ''(no limit)'']
  
It specifies the maximal allowed number of the suspended event processing threads. A negative value indicates there is no limit at all.
+
It specifies the maximum allowed number of the suspended event processing threads. A negative value indicates that there is no limit at all.
  
An instance of <javadoc>org.zkoss.zk.ui.SuspendNotAllowedException</javadoc> is thrown, if an event processing thread is going to suspend and the number of suspended threads exceeds the number specified here. You can use the <tt>error-page</tt> element to control how to display this error, or catch the exception and handle it in a different way.'
+
An instance of <javadoc>org.zkoss.zk.ui.SuspendNotAllowedException</javadoc> is thrown, if an event processing thread is going to suspend and the number of suspended threads exceeds the number specified here. You can use the <code>error-page</code> element to control how to display this error, or catch the exception and handle it in a different way.'
  
Notice this option is applicable only if the event processing thread is enabled (it is disabled by default). Please refer to [[ZK Configuration Reference/zk.xml/The system-config Element/The disable-event-thread Element|the disable-event-thread element]] for details.
+
Notice that this option is applicable only if the event processing thread is enabled (it is disabled by default). Please refer to [[ZK Configuration Reference/zk.xml/The system-config Element/The disable-event-thread Element|the disable-event-thread element]] for details.
  
 
=Version History=
 
=Version History=

Latest revision as of 10:34, 19 January 2022


The max-suspended-threads Element


Syntax:

<max-suspended-threads>a_number</max-suspended-threads>
[Default: -1 (no limit)]

It specifies the maximum allowed number of the suspended event processing threads. A negative value indicates that there is no limit at all.

An instance of SuspendNotAllowedException is thrown, if an event processing thread is going to suspend and the number of suspended threads exceeds the number specified here. You can use the error-page element to control how to display this error, or catch the exception and handle it in a different way.'

Notice that this option is applicable only if the event processing thread is enabled (it is disabled by default). Please refer to the disable-event-thread element for details.

Version History

Last Update : 2022/01/19


Version Date Content
     



Last Update : 2022/01/19

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