ejb3/src/main/java/org/jboss/as/ejb3/timerservice/TimerImpl.java
protected void assertTimerState() {
        if (timerState == TimerState.EXPIRED)
            throw EjbLogger.EJB3_TIMER_LOGGER.timerHasExpired();
        if (timerState == TimerState.CANCELED)
            throw EjbLogger.EJB3_TIMER_LOGGER.timerWasCanceled();
        AllowedMethodsInformation.checkAllowed(MethodType.TIMER_SERVICE_METHOD);
    }
protected void assertTimerState() {
        if (timerState == TimerState.EXPIRED)
            throw EjbLogger.EJB3_TIMER_LOGGER.timerHasExpired();
        if (timerState == TimerState.CANCELED)
            throw EjbLogger.EJB3_TIMER_LOGGER.timerWasCanceled();
        AllowedMethodsInformation.checkAllowed(MethodType.TIMER_SERVICE_METHOD);
    }
protected void assertTimerState ( ) { if ( timerState == TimerState . EXPIRED ) throw EjbLogger . EJB3_TIMER_LOGGER . timerHasExpired ( ) ; if ( timerState == TimerState . CANCELED ) throw EjbLogger . EJB3_TIMER_LOGGER . timerWasCanceled ( ) ; AllowedMethodsInformation . checkAllowed ( MethodType . TIMER_SERVICE_METHOD ) ; }
Asserts that the timer is <i>not</i> in any of the following states:
<ul>
<li>{@link TimerState#CANCELED}</li>
<li>{@link TimerState#EXPIRED}</li>
</ul>

@throws javax.ejb.NoSuchObjectLocalException if the txtimer was canceled or has expired
Asserts that the timer is <i > not< / i > in any of the following states : <ul > <li > { @link TimerState#CANCELED } < / li > <li > { @link TimerState#EXPIRED } < / li > < / ul >