@Override
    public Timer createIntervalTimer(long initialDuration, long intervalDuration, TimerConfig timerConfig)
            throws IllegalArgumentException, IllegalStateException, EJBException {
        assertTimerServiceState();
        if (initialDuration < 0) {
            throw EJB3_TIMER_LOGGER.invalidInitialExpiration("intervalDuration");
        }
        if (intervalDuration < 0) {
            throw EJB3_TIMER_LOGGER.invalidInitialExpiration("intervalDuration");
        }

        return this.createIntervalTimer(new Date(System.currentTimeMillis() + initialDuration), intervalDuration, timerConfig);
    }
@ Override public Timer createIntervalTimer ( long initialDuration , long intervalDuration , TimerConfig timerConfig ) throws IllegalArgumentException , IllegalStateException , EJBException { assertTimerServiceState ( ) ; if ( initialDuration < 0 ) { throw EJB3_TIMER_LOGGER . invalidInitialExpiration ( "intervalDuration" ) ; } if ( intervalDuration < 0 ) { throw EJB3_TIMER_LOGGER . invalidInitialExpiration ( "intervalDuration" ) ; } return this . createIntervalTimer ( new Date ( System . currentTimeMillis ( ) + initialDuration ) , intervalDuration , timerConfig ) ; }
{@inheritDoc}