Interface EventThreadSuspend


public interface EventThreadSuspend
Used to listen when the event processing thread is going to suspend.

How this interface is used.

  1. First, you specify a class that implements this interface in WEB-INF/zk.xml as a listener.
  2. Then, an instance of the specified class is constructed and beforeSuspend(org.zkoss.zk.ui.Component, org.zkoss.zk.ui.event.Event, java.lang.Object) is invoked, before the thread is going to suspend. If beforeSuspend(org.zkoss.zk.ui.Component, org.zkoss.zk.ui.event.Event, java.lang.Object) throws a exception, the thread won't be suspended.
Author:
tomyeh
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called in the servlet thread after the event processing thread has been suspended.
    void
    beforeSuspend(Component comp, Event evt, Object obj)
    Called before the event processing thread is suspended.