Example usage for org.apache.wicket.ajax AjaxSelfUpdatingTimerBehavior stop

List of usage examples for org.apache.wicket.ajax AjaxSelfUpdatingTimerBehavior stop

Introduction

In this page you can find the example usage for org.apache.wicket.ajax AjaxSelfUpdatingTimerBehavior stop.

Prototype

public final void stop(final IPartialPageRequestHandler target) 

Source Link

Document

Stops the timer.

Usage

From source file:com.axway.ats.testexplorer.pages.model.CopyJobThread.java

License:Apache License

protected void stopConsoleUpdateTimers() {

    // Stopping the console timers, but first wait for the last polling update
    try {// w ww . j  a va 2 s . co  m
        sleep(consoleUpdateTimers.get(0).getUpdateInterval().getMilliseconds());
    } catch (InterruptedException e) {
        LOG.error("CopyJobThread '" + getName() + ", " + getId()
                + " interrupted while waiting for the last polling update.");
    }
    for (AjaxSelfUpdatingTimerBehavior consoleUpdateTimer : consoleUpdateTimers) {
        consoleUpdateTimer.stop(null);
    }
}