The org.zkoss.zk.ui.event.EventThreadSuspend interface"

From Documentation
Line 1: Line 1:
 
  {{ZKConfigurationReferencePageHeader}}
 
  {{ZKConfigurationReferencePageHeader}}
'''Property:'''
+
 
 +
'''Listener:'''
 
  org.zkoss.zk.ui.event.EventThreadSuspend interface  
 
  org.zkoss.zk.ui.event.EventThreadSuspend interface  
  
<javadoc type="interface">org.zkoss.zk.ui.event.EventThreadSuspend</javadoc> is implemented by a listener class that will be called before an event processing thread is going to be suspended.
+
A listener could implement <javadoc type="interface">org.zkoss.zk.ui.event.EventThreadSuspend</javadoc>, suthc that it will be called before an event processing thread is going to be suspended.
 +
 
 +
<blockquote>
 +
----
 +
Notice that it is useless unless [[ZK Developer's Reference/UI Patterns/Event Threads|the event processing threads]] are enabled (it is disabled by default).
 +
</blockquote>
  
 
If a listener implements this interface, an instance is created, and then the <tt>beforeSuspend</tt> method, when an event processing thread is going to suspended. It executes in the event processing thread.
 
If a listener implements this interface, an instance is created, and then the <tt>beforeSuspend</tt> method, when an event processing thread is going to suspended. It executes in the event processing thread.

Revision as of 04:49, 20 April 2011


DocumentationZK Configuration Referencezk.xmlThe listener ElementThe org.zkoss.zk.ui.event.EventThreadSuspend interface
The org.zkoss.zk.ui.event.EventThreadSuspend interface


Listener:

org.zkoss.zk.ui.event.EventThreadSuspend interface 

A listener could implement EventThreadSuspend, suthc that it will be called before an event processing thread is going to be suspended.


Notice that it is useless unless the event processing threads are enabled (it is disabled by default).

If a listener implements this interface, an instance is created, and then the beforeSuspend method, when an event processing thread is going to suspended. It executes in the event processing thread.

A developer can prevent can prevent an event processing thread from being suspended by throwing an exception.

A typical use of this feature is to limit the number of suspended threads.



Last Update : 2011/04/20

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