Examples of RunnableTimerTask


Examples of com.volantis.shared.net.impl.RunnableTimerTask

     */
    private TimingOutTask createAndScheduleTimingOutTask(Period timeout) {
        // Lets handle the timeout.
        TimingOutTask task = new ThreadInterruptingTimingOutTask();
        if (timeout != null && timeout != Period.INDEFINITELY) {
            TIMER.schedule(new RunnableTimerTask(task),
                        timeout.inMillis());
        }
        return task;
    }
View Full Code Here

Examples of com.volantis.shared.net.impl.RunnableTimerTask

                    configuration.getHost(), connection.getPort(),
                    method.getPath(), method.getQueryString(), null);

            if (roundTripTimeout != Period.INDEFINITELY) {
                task = createTimingOutTask(connection);
                TIMER.schedule(new RunnableTimerTask(task),
                        roundTripTimeout.inMillis());
            }


            // Normally HttpClient takes care or opening collection
View Full Code Here

Examples of com.volantis.shared.net.impl.RunnableTimerTask

    }

    public void testInterruptingDuringReadFromFile() throws Exception {

        final Timer timer = new Timer(true);
        timer.schedule(new RunnableTimerTask(
                new ThreadInterruptingTimingOutTask()), 500);

        Period timeout = null;
        try {
View Full Code Here

Examples of se.unlogic.standardutils.timer.RunnableTimerTask

      log.fatal("Not bound on any sockets, aborting startup!");
      return;
    }

    log.debug("Starting secondary zone update timer...");
    this.timerTask = new RunnableTimerTask(this);
    this.secondaryZoneUpdateTimer = new Timer();
    this.secondaryZoneUpdateTimer.schedule(timerTask, MillisecondTimeUnits.SECOND * 60, MillisecondTimeUnits.SECOND * 60);

    log.info(VERSION + " started with " + this.primaryZoneMap.size() + " primary zones and " + this.secondaryZoneMap.size() + " secondary zones");
  }
View Full Code Here

Examples of se.unlogic.standardutils.timer.RunnableTimerTask

    this.name = name;

    if(autoReloadZones && pollingInterval != null){

      watcher = new Timer(true);
      watcher.schedule(new RunnableTimerTask(this), 5000, pollingInterval);
    }
  }
View Full Code Here

Examples of se.unlogic.standardutils.timer.RunnableTimerTask

      log.fatal("Not bound on any sockets, aborting startup!");
      return;
    }

    log.debug("Starting secondary zone update timer...");
    this.timerTask = new RunnableTimerTask(this);
    this.secondaryZoneUpdateTimer = new Timer();
    this.secondaryZoneUpdateTimer.schedule(timerTask, MillisecondTimeUnits.SECOND * 60, MillisecondTimeUnits.SECOND * 60);

    log.info(VERSION + " started with " + this.primaryZoneMap.size() + " primary zones and " + this.secondaryZoneMap.size() + " secondary zones");
  }
View Full Code Here

Examples of se.unlogic.standardutils.timer.RunnableTimerTask

    this.name = name;

    if(autoReloadZones && pollingInterval != null){

      watcher = new Timer(true);
      watcher.schedule(new RunnableTimerTask(this), 5000, pollingInterval);
    }
  }
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.