Package jade.core

Examples of jade.core.TimerListener


      // Update the timer that triggers the delivery of a KEEP-ALIVE packet
      if (keepAliveTimer != null) {
        Runtime.instance().getTimerDispatcher().remove(keepAliveTimer);
      }
      long now = System.currentTimeMillis();
      keepAliveTimer = new Timer(now + keepAliveTime, new TimerListener() {
        public void doTimeOut(Timer t) {
          dispatchKeepAlive();
        }
      });
      keepAliveTimer = Runtime.instance().getTimerDispatcher().add(keepAliveTimer);
View Full Code Here


 
  // No need for synchronization as this is always executed within a synchronized block
  private void activateMaxDisconnectionTimer() {
    // Set the disconnection timer
    long now = System.currentTimeMillis();
    maxDisconnectionTimer = new Timer(now + maxDisconnectionTime, new TimerListener() {
      public void doTimeOut(Timer t) {
        synchronized (NIOHTTPBEDispatcher.this) {
          if (frontEndStatus != CONNECTED) {
            myLogger.log(Logger.WARNING, myID+" - Max disconnection timeout expired.");
            // The remote FrontEnd is probably down --> notify up.
View Full Code Here

TOP

Related Classes of jade.core.TimerListener

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.