The org.zkoss.zk.ui.event.EventThreadSuspend interface"
From Documentation
(Created page with ' {{ZKConfigurationReferencePageHeader}} <javadoc type="interface">org.zkoss.zk.ui.event.EventThreadSuspend</javadoc> is implemented by a listener class that will be called befor…') |
|||
Line 1: | Line 1: | ||
{{ZKConfigurationReferencePageHeader}} | {{ZKConfigurationReferencePageHeader}} | ||
+ | '''Property:''' | ||
+ | The 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. | <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. |
Revision as of 08:06, 6 December 2010
Property:
The org.zkoss.zk.ui.event.EventThreadSuspend interface
EventThreadSuspend is implemented by a listener class that will be called before an event processing thread is going to be suspended.
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.