FileDocCategorySizeDatePackage
PeriodicallyServicable.javaAPI DocGlassfish v2 API3556Fri May 04 22:32:18 BST 2007com.sun.enterprise.util.scheduler

PeriodicallyServicable

public interface PeriodicallyServicable implements com.sun.enterprise.util.threadpool.Servicable
PeriodicallyServicable inherits from the Servicable interface and enable utilities such as PeriodicEventScheduler to give a callback to the objects on their service methods.
Ensure that the objects implementing PeriodicallyServicable do not hog the threads for execution. Logic like inserting a task onto the writer thread queues is best suited for this purpose.
$Source: /cvs/glassfish/appserv-commons/src/java/com/sun/enterprise/util/scheduler/PeriodicallyServicable.java,v $
author
$Author: tcfujii $
version
1.0 $Revision: 1.4 $ $Date: 2007/05/05 05:32:17 $
see
com.sun.enterprise.util.threadpool.Servicable
see
PeriodicEventScheduler

Fields Summary
Constructors Summary
Methods Summary
public booleangetExecuteIfMissed()
Determine to execute the service method of this object even if it has missed the right schedule.

public booleangetExecutionTolerance(long missedByMillis)
Determine to execute the service method of this object when the schedule is delayed by 'missedByMillis' milli seconds.

public longgetFrequency()
Get the frequency (time interval) at which service() method will be invoked.

return
time in milli seconds.

public java.lang.StringtoString()
Print an identification for the object.