public function createIntervalTimer($initialExpiration, $intervalDuration, \Serializable $info = null, $persistent = true)
    {

        // create the actual date and add the initial expiration
        $now = new \DateTime();
        $now->add(new \DateInterval(sprintf('PT%dS', $initialExpiration / 1000000)));

        // create a new timer
        return $this->createTimer($now, $intervalDuration, $info, $persistent);
    }
public function createIntervalTimer($initialExpiration, $intervalDuration, \Serializable $info = null, $persistent = true)
    {

        // create the actual date and add the initial expiration
        $now = new \DateTime();
        $now->add(new \DateInterval(sprintf('PT%dS', $initialExpiration / 1000000)));

        // create a new timer
        return $this->createTimer($now, $intervalDuration, $info, $persistent);
    }
public function createIntervalTimer ( $ initialExpiration , $ intervalDuration , \ Serializable $ info = null , $ persistent = true ) { // create the actual date and add the initial expiration $ now = new \ DateTime ( ) ; $ now -> add ( new \ DateInterval ( sprintf ( 'PT%dS' , $ initialExpiration / 1000000 ) ) ) ; // create a new timer return $ this -> createTimer ( $ now , $ intervalDuration , $ info , $ persistent ) ; }
Create an interval timer whose first expiration occurs at a given point in time and
whose subsequent expirations occur after a specified interval.

@param integer       $initialExpiration The number of milliseconds that must elapse before the first timer expiration notification
@param integer       $intervalDuration  The number of milliseconds that must elapse between timer
expiration notifications. Expiration notifications are scheduled relative to the time of the first expiration. If
expiration is delayed(e.g. due to the interleaving of other method calls on the bean) two or more expiration notifications
may occur in close succession to "catch up".
@param \Serializable $info              Serializable info that will be made available through the newly created timers Timer::getInfo() method
@param boolean       $persistent        TRUE if the newly created timer has to be persistent

@return \AppserverIo\Psr\EnterpriseBeans\TimerInterface The newly created Timer
@throws \AppserverIo\Psr\EnterpriseBeans\EnterpriseBeansException If this method could not complete due to a system-level failure
Create an interval timer whose first expiration occurs at a given point in time and whose subsequent expirations occur after a specified interval .