ejb3/src/main/java/org/jboss/as/ejb3/timerservice/TimerServiceImpl.java
@Override
    public Timer createTimer(long initialDuration, long intervalDuration, Serializable info)
            throws IllegalArgumentException, IllegalStateException, EJBException {
        assertTimerServiceState();
        if (initialDuration < 0) {
            throw EJB3_TIMER_LOGGER.invalidInitialDurationTimer();
        }
        if (intervalDuration < 0) {
            throw EJB3_TIMER_LOGGER.invalidIntervalTimer();
        }
        return this.createTimer(new Date(System.currentTimeMillis() + initialDuration), intervalDuration, info, true);

    }
@Override
    public Timer createTimer(long initialDuration, long intervalDuration, Serializable info)
            throws IllegalArgumentException, IllegalStateException, EJBException {
        assertTimerServiceState();
        if (initialDuration < 0) {
            throw EJB3_TIMER_LOGGER.invalidInitialDurationTimer();
        }
        if (intervalDuration < 0) {
            throw EJB3_TIMER_LOGGER.invalidIntervalTimer();
        }
        return this.createTimer(new Date(System.currentTimeMillis() + initialDuration), intervalDuration, info, true);

    }
@ Override public Timer createTimer ( long initialDuration , long intervalDuration , Serializable info ) throws IllegalArgumentException , IllegalStateException , EJBException { assertTimerServiceState ( ) ; if ( initialDuration < 0 ) { throw EJB3_TIMER_LOGGER . invalidInitialDurationTimer ( ) ; } if ( intervalDuration < 0 ) { throw EJB3_TIMER_LOGGER . invalidIntervalTimer ( ) ; } return this . createTimer ( new Date ( System . currentTimeMillis ( ) + initialDuration ) , intervalDuration , info , true ) ; }
{@inheritDoc}
{