Example usage for java.util TimerTask subclass-usage

List of usage examples for java.util TimerTask subclass-usage

Introduction

In this page you can find the example usage for java.util TimerTask subclass-usage.

Usage

From source file resourceMonitor.UploadResultsTask.java

public class UploadResultsTask extends TimerTask {
    private static Logger logger = Logger.getLogger(UploadResultsTask.class);
    private final SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
    private final TimeZone utc = TimeZone.getTimeZone("UTC");
    private final HttpClient httpClient = new DefaultHttpClient();

From source file org.kbac.throttle.FixedTimeTimerTask.java

/**
 * Created by krzysztof on 16/01/2016.
 * <p/>
 * Runnable extension allowing to schedule bucket drain invocations
 *
 * @author Krzysztof Bacalski

From source file org.apache.james.postage.execution.SampleController.java

/**
 * initiate one shot of sample data generation
 */
public class SampleController extends TimerTask {

    private static Log log = LogFactory.getLog(SampleController.class);

From source file phex.util.SubscriptionDownloader.java

public class SubscriptionDownloader extends TimerTask {
    private static final Logger logger = LoggerFactory.getLogger(SubscriptionDownloader.class);
    private final Peer peer;

    public SubscriptionDownloader(Peer peer) {
        this.peer = peer;

From source file org.apache.apex.malhar.lib.state.managed.StateTracker.java

/**
 * Tracks the size of state in memory and evicts buckets.
 */
class StateTracker extends TimerTask {
    private final transient Timer memoryFreeService = new Timer();

From source file org.eclipse.jubula.client.ui.rcp.dialogs.nag.RCPAUTStartDelayNagTask.java

/**
 * Displays a nag dialog if a given AUT does not start in good time.
 * 
 * @author BREDEX GmbH
 * @created 23.03.2009
 */

From source file SimpleTimerMIDlet.java

class SimpleTimerTask extends TimerTask {
    public final void run() {
        System.out.println("Executing ....");
        cancel();
    }
}

From source file phex.host.UltrapeerCapabilityChecker.java

public class UltrapeerCapabilityChecker extends TimerTask {
    //private static Logger logger = LoggerFactory.getLogger( 
    //    UltrapeerCapabilityChecker.class );
    /**
     * The time period in millis to wait between checks.
     */

From source file SimpleTimerCancelMIDlet.java

class SimpleTimerTask extends TimerTask {
    public final void run() {
        cancel();
    }
}

From source file org.wso2.carbon.analytics.dataservice.core.indexing.AnalyticsReceiverIndexingFlowController.java

/**
 * This class contains the state of the current receiver / indexing performance,
 * and does the required flow controlling operations.
 */
public class AnalyticsReceiverIndexingFlowController extends TimerTask {