📄 eventthreadsuspend.java
字号:
/* EventThreadSuspend.java{{IS_NOTE Purpose: Description: History: Tue May 2 20:53:27 2006, Created by tomyeh}}IS_NOTECopyright (C) 2006 Potix Corporation. All Rights Reserved.{{IS_RIGHT This program is distributed under GPL Version 2.0 in the hope that it will be useful, but WITHOUT ANY WARRANTY.}}IS_RIGHT*/package org.zkoss.zk.ui.event;import org.zkoss.zk.ui.Component;import org.zkoss.zk.ui.UiException;/** * Used to listen when the event processing thread is going to suspend. * * <p>How this interface is used. * <ol> * <li>First, you specify a class that implements this interface * in WEB-INF/zk.xml as a listener. * </li> * <li>Then, an instance of the specified class is constructed and * {@link #beforeSuspend} * is invoked, before the thread is going to suspend. * If {@link #beforeSuspend} throws a exception, the thread won't * be suspended.</li> * </ol> * * @author tomyeh */public interface EventThreadSuspend { /** Called before the event thread suspends. * * <p>If developers want to disable the suspend/resume feature or * to limit number of suspended thread, they could throw * {@link UiException} to prevent the event thread from suspending. * * @param obj which object that {@link org.zkoss.zk.ui.Executions#wait} * is called with. * @exception UiException preventing the thread from suspending. */ public void beforeSuspend(Component comp, Event evt, Object obj) throws UiException;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -