Package javax.ejb

Examples of javax.ejb.NoMoreTimeoutsException


    public Date getNextTimeout() throws IllegalStateException, NoSuchObjectLocalException {
        checkState();
       
        Date nextTimeout = timerData.getNextTimeout();
        if (nextTimeout == null) throw new NoMoreTimeoutsException("The timer has no future timeouts");
        return timerData.getNextTimeout();
    }
View Full Code Here


    public long getTimeRemaining() throws IllegalStateException, NoSuchObjectLocalException {
        checkState();
        final Date nextTimeout = timerData.getNextTimeout();
        if (nextTimeout == null) {
            throw new NoMoreTimeoutsException("The timer has no future timeouts");
        }
        return timerData.getTimeRemaining();
    }
View Full Code Here

    public Date getNextTimeout() throws IllegalStateException, NoSuchObjectLocalException {
        checkState();

        final Date nextTimeout = timerData.getNextTimeout();
        if (nextTimeout == null) {
            throw new NoMoreTimeoutsException("The timer has no future timeouts");
        }
        return timerData.getNextTimeout();
    }
View Full Code Here

    public long getTimeRemaining() throws IllegalStateException, NoSuchObjectLocalException {
        checkState();
        final Date nextTimeout = timerData.getNextTimeout();
        if (nextTimeout == null) {
            throw new NoMoreTimeoutsException("The timer has no future timeouts");
        }
        return timerData.getTimeRemaining();
    }
View Full Code Here

    public Date getNextTimeout() throws IllegalStateException, NoSuchObjectLocalException {
        checkState();

        final Date nextTimeout = timerData.getNextTimeout();
        if (nextTimeout == null) {
            throw new NoMoreTimeoutsException("The timer has no future timeouts");
        }
        return timerData.getNextTimeout();
    }
View Full Code Here

        } catch(FinderException fe) {
            throw new NoSuchObjectLocalException("timer no longer exists", fe);
        }

        if (nextTimeout == null) {
            throw new NoMoreTimeoutsException();
        }

        return nextTimeout;
    }
View Full Code Here

    public long getTimeRemaining() throws IllegalStateException, NoSuchObjectLocalException {
        checkState();
        final Date nextTimeout = timerData.getNextTimeout();
        if (nextTimeout == null) {
            throw new NoMoreTimeoutsException("The timer has no future timeouts");
        }
        return timerData.getTimeRemaining();
    }
View Full Code Here

    public Date getNextTimeout() throws IllegalStateException, NoSuchObjectLocalException {
        checkState();

        final Date nextTimeout = timerData.getNextTimeout();
        if (nextTimeout == null) {
            throw new NoMoreTimeoutsException("The timer has no future timeouts");
        }
        return timerData.getNextTimeout();
    }
View Full Code Here

   {
      // first check the validity of the timer state
      this.assertTimerState();
      if (this.nextExpiration == null)
      {
         throw new NoMoreTimeoutsException("No more timeouts for timer " + this);
      }
      return this.nextExpiration;
   }
View Full Code Here

      // first check the validity of the timer state
      this.assertTimerState();
      if (this.nextExpiration == null)
      {
         throw new NoMoreTimeoutsException("No more timeouts for timer " + this);
      }
      long currentTimeInMillis = System.currentTimeMillis();
      long nextTimeoutInMillis = this.nextExpiration.getTime();

      // if the next expiration is *not* in future and the repeat interval isn't
View Full Code Here

TOP

Related Classes of javax.ejb.NoMoreTimeoutsException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.