TimerHandle (Java EE 5)

Java EE API


javax.ejb Interface TimerHandle

All Superinterfaces:
Serializable

public interface TimerHandle
extends Serializable

Implements: java.io.Serializable

TimerHandle 接口由所有 EJB 计时器句柄实现。
英文文档:

The TimerHandle interface is implemented by all EJB timer handles.


Method Summary
 Timer
 

Method Detail

public Timer getTimer() throws IllegalStateException, NoSuchObjectLocalException, EJBException
获得对此句柄表示的计时器的引用。
return 对此句柄表示的计时器的引用。
ThrowsIllegalStateException: 如果在实例不允许访问此方法的情况下调用了此方法。
ThrowsNoSuchObjectLocalException: 如果对其相关计时器已经过期或删除的句柄调用此方法。
ThrowsEJBException: 如果此方法由于系统级失败而无法完成。
英文文档:

getTimer

Timer getTimer()
               throws IllegalStateException,
                      NoSuchObjectLocalException,
                      EJBException
Obtain a reference to the timer represented by this handle.

Returns:
a reference to the timer represented by this handle.
Throws:
IllegalStateException - If this method is invoked while the instance is in a state that does not allow access to this method.
NoSuchObjectLocalException - If invoked on a handle whose associated timer has expired or has been cancelled.
EJBException - If this method could not complete due to a system-level failure.


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!