Package jade.core

Examples of jade.core.TimerDispatcher$TimerComparator


    Refresh the keep-alive timer.
    Mutual exclusion with doTimeOut()
     */
    private synchronized void updateKeepAlive() {
        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


    Refresh the connection drop-down timer.
    Mutual exclusion with doTimeOut()
     */
    private synchronized void updateConnectionDropDown() {
        if (connectionDropDownTime > 0) {
            TimerDispatcher td = TimerDispatcher.getTimerDispatcher();
            if (cdTimer != null) {
                td.remove(cdTimer);
            }
            cdTimer = td.add(new Timer(System.currentTimeMillis() + connectionDropDownTime, this));
        }
    }
View Full Code Here

   * Refresh the keep-alive timer.
   * Mutual exclusion with updateKeepAlive() and updateConnectionDropDown()
   */
  private synchronized void updateKeepAlive() {
    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

   * Refresh the connection drop-down timer.
   * Mutual exclusion with updateKeepAlive(), updateConnectionDropDown() and doTimeOut()
   */
  private synchronized void updateConnectionDropDown() {
    if (connectionDropDownTime > 0) {
      TimerDispatcher td = TimerDispatcher.getTimerDispatcher();
      if (cdTimer != null) {
        td.remove(cdTimer);
      }
      cdTimer = td.add(new Timer(System.currentTimeMillis()+connectionDropDownTime, this));
    }
  }
View Full Code Here

      }
    }

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

TOP

Related Classes of jade.core.TimerDispatcher$TimerComparator

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.