Interface EventThreadResume


public interface EventThreadResume
Used to listen after the event processing thread is resumed.

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, when a suspended event thread is being resumed, an instance of the specified class is constructed and beforeResume(org.zkoss.zk.ui.Component, org.zkoss.zk.ui.event.Event) is called first in the main thread (i.e., the servlet thread), right before resuming. And then, afterResume(org.zkoss.zk.ui.Component, org.zkoss.zk.ui.event.Event) is invoked in the event processing thread, after the thread is resumed.

In addition to resuming normally, a suspended event thread might be aborted (usually caused by destroying the desktop owning the event thread). In this case, abortResume(org.zkoss.zk.ui.Component, org.zkoss.zk.ui.event.Event) is called instead of beforeResume(org.zkoss.zk.ui.Component, org.zkoss.zk.ui.event.Event) and afterResume(org.zkoss.zk.ui.Component, org.zkoss.zk.ui.event.Event).

Author:
tomyeh
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when the suspended event thread is aborted.
    void
    Called after the suspended event thread is resumed.
    void
    Called just before the suspended event thread is resumed.