Skip navigation links

Oracle® Coherence Java API Reference
Release 3.6.1.0

E18814-01


com.tangosol.util
Class TaskDaemon.PeriodicTask

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.util.TaskDaemon.PeriodicTask

All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
TaskDaemon

public class TaskDaemon.PeriodicTask
extends Base
implements java.lang.Runnable

A PeriodicTask is a task that automatically reschedules itself so that it executes on a periodic basis.


Constructor Summary
TaskDaemon.PeriodicTask(java.lang.Runnable task, long cMillisInterval)
          Construct a task that will automatically be run on a periodic basis.

 

Method Summary
 void run()
          When an object implementing interface Runnable is used to create a thread, starting the thread causes the object's run method to be called in that separately executing thread.

 

Constructor Detail

TaskDaemon.PeriodicTask

public TaskDaemon.PeriodicTask(java.lang.Runnable task,
                               long cMillisInterval)
Construct a task that will automatically be run on a periodic basis.
Parameters:
task - the actual task to run
cMillisInterval - the period of time, in milliseconds, to wait between runs of the task

Method Detail

run

public void run()
Description copied from interface: java.lang.Runnable
When an object implementing interface Runnable is used to create a thread, starting the thread causes the object's run method to be called in that separately executing thread.

The general contract of the method run is that it may take any action whatsoever.

Specified by:
run in interface java.lang.Runnable
See Also:
Thread.run()

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.6.1.0

E18814-01


Copyright © 2000, 2010, Oracle and/or its affiliates. All rights reserved.