public function getNextTimeout()
    {

        // throw an exception if timer has been canceled
        if ($this->isCanceled()) {
            throw new NoSuchObjectLocalException('Timer has been cancelled');
        }

        // return the timeout of the next expiration
        $nextExpiration = $this->getNextExpiration();

        // check if we've a next expiration timeout
        if ($nextExpiration == null) {
            throw new NoMoreTimeoutsException(sprintf('Timer %s has no more future timeouts', $this->getId()));
        }

        // return the next expiration date
        return $nextExpiration;
    }
public function getNextTimeout()
    {

        // throw an exception if timer has been canceled
        if ($this->isCanceled()) {
            throw new NoSuchObjectLocalException('Timer has been cancelled');
        }

        // return the timeout of the next expiration
        $nextExpiration = $this->getNextExpiration();

        // check if we've a next expiration timeout
        if ($nextExpiration == null) {
            throw new NoMoreTimeoutsException(sprintf('Timer %s has no more future timeouts', $this->getId()));
        }

        // return the next expiration date
        return $nextExpiration;
    }
public function getNextTimeout ( ) { // throw an exception if timer has been canceled if ( $ this -> isCanceled ( ) ) { throw new NoSuchObjectLocalException ( 'Timer has been cancelled' ) ; } // return the timeout of the next expiration $ nextExpiration = $ this -> getNextExpiration ( ) ; // check if we've a next expiration timeout if ( $ nextExpiration == null ) { throw new NoMoreTimeoutsException ( sprintf ( 'Timer %s has no more future timeouts' , $ this -> getId ( ) ) ) ; } // return the next expiration date return $ nextExpiration ; }
Get the point in time at which the next timer expiration is scheduled to occur.

@return \DateTime Get the point in time at which the next timer expiration is scheduled to occur
@throws \AppserverIo\Psr\EnterpriseBeans\NoSuchObjectLocalException If invoked on a timer that has expired or has been cancelled
@throws \AppserverIo\Psr\EnterpriseBeans\NoMoreTimeoutsException Indicates that the timer has no future timeouts
@throws \AppserverIo\Psr\EnterpriseBeans\EnterpriseBeansException If this method could not complete due to a system-level failure
Get the point in time at which the next timer expiration is scheduled to occur .