Examples of Timer


Examples of io.netty.util.Timer

        this.port = port;
    }

    public void run() {
        // Initialize the timer that schedules subsequent reconnection attempts.
        final Timer timer = new HashedWheelTimer();

        // Configure the client.
        final ClientBootstrap bootstrap = new ClientBootstrap(
                new NioClientSocketChannelFactory(
                        Executors.newCachedThreadPool(),
View Full Code Here

Examples of jade.core.Timer

        if (keepAliveTime > 0) {
            TimerDispatcher td = TimerDispatcher.getTimerDispatcher();
            if (kaTimer != null) {
                td.remove(kaTimer);
            }
            kaTimer = td.add(new Timer(System.currentTimeMillis() + keepAliveTime, this));
        }
    }
View Full Code Here

Examples of java.util.Timer

  }

  private class GarbageTask extends TimerTask {
    private GarbageTask() {
      if (NTransaction.this.timer == null)
        NTransaction.this.timer = new Timer();
      if (logFile.garbageTimeOut > 0) {
        try {
          NTransaction.this.timer.schedule(this, logFile.garbageTimeOut, logFile.garbageTimeOut);
        } catch (Exception exc) {
          logmon.log(BasicLevel.ERROR,
View Full Code Here

Examples of javax.ejb.Timer

     *         associated timer has expired or has been cancelled.
     * @throws EJBException If this method could not complete due to a
     *         system-level failure.
     */
    public Timer getTimer() throws IllegalStateException, NoSuchObjectLocalException, EJBException {
        Timer timer = null;

        // Get data from the Job Detail
        String jobName = this.easyBeansJobDetail.getName();
        String groupName = this.easyBeansJobDetail.getGroup();

View Full Code Here

Examples of javax.management.timer.Timer

    */
   private void initTimer()
   {
      try
      {
         timer = new Timer();
         timerName = new ObjectName("test:type=timer");
         server.registerMBean(timer, timerName);
         server.addNotificationListener(timerName, this, null, null);
      }
      catch (Exception e)
View Full Code Here

Examples of javax.swing.Timer

      }
    });

    if (mRemainingSecs > 0) {
      updateCloseBtText();
      mAutoCloseTimer = new Timer(1000, new ActionListener() {
        public void actionPerformed(final ActionEvent evt) {
          handleTimerEvent();
        }
      });
      mAutoCloseTimer.start();
View Full Code Here

Examples of junit.extensions.abbot.Timer

        MouseWatcher mw = new MouseWatcher();
        list.addMouseListener(mw);
        showFrame(list);
        tester.actionSelectRow(list, new JListLocation(data[0]));
        assertEquals("Wrong item selected", 0, list.getSelectedIndex());
        Timer timer = new Timer();
        while (mw.clickCount == 0) {
            if (timer.elapsed() > EVENT_GENERATION_DELAY)
                throw new RuntimeException("Timed out waiting for clicks");
            tester.sleep();
        }
        assertEquals("Too many clicks", 1, mw.clickCount);
    }
View Full Code Here

Examples of lejos.util.Timer

            update();
          }
        }
      });

      tickerTimer = new Timer(TICKER_INTERVAL_MSEC, new TimerListener() {
        public void timedOut() {
          int tickerLen = updateTicker(tickerOffset);
          if (tickerLen > 0) {
            tickerOffset--;
            if (tickerOffset < -tickerLen) {
              tickerOffset = SCREEN_WIDTH;
            }
          }
        }
      });
      tickerTimer.start();
     
      // Start update timer task
      new Timer(50, new TimerListener() {
        public void timedOut() {
        if ((current != null) && (current instanceof Alert)
            && (alertTimeout != Alert.FOREVER) && msecPassed(alertTimeout)) {
            // Hide alert screen and replace backup without notify
            current.hideNotify();
View Full Code Here

Examples of models.outils.Timer

   * @see Runnable
   */
  @Override
  public void run()
  {
      timer = new Timer();
        timer.start();
       
        long lastFPSlog = 0;
        int frames      = 0;
     
View Full Code Here

Examples of mods.railcraft.common.util.misc.Timer

        EntityPlayer player = event.player;
        if (player.worldObj == null)
            return;

        Timer timer = timers.get(player);
        if (timer == null) {
            timer = new Timer();
            timers.put(player, timer);
        }
        if (!timer.hasTriggered(player.worldObj, TICKS_PER_MARKER))
            return;

        String username = Railcraft.proxy.getPlayerUsername(player);
        if (username == null || username.startsWith("["))
            return;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.