public abstract class DataPruneMaintenanceTask extends java.lang.Object implements SelfSchedulingRunnable
Constructor and Description |
---|
DataPruneMaintenanceTask(GatewayContext context,
int age,
TimeUnits units) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
executeDelete()
END SELF-SCHEDULING RUNNABLE CODE
|
protected long |
getAgeMillis()
Gets the age to delete in milliseconds.
|
GatewayContext |
getContext() |
org.apache.log4j.Logger |
getLogger() |
long |
getNextExecDelayMillis()
SELF-SCHEDULING RUNNABLE CODE
|
void |
run() |
void |
setController(SchedulingController controller)
Called by the execution engine, passes in a scheduling controller that the self scheduling runnable can use to
request a reschedule.
|
public DataPruneMaintenanceTask(GatewayContext context, int age, TimeUnits units)
protected long getAgeMillis()
public org.apache.log4j.Logger getLogger()
public GatewayContext getContext()
public long getNextExecDelayMillis()
getNextExecDelayMillis
in interface SelfSchedulingRunnable
public void setController(SchedulingController controller)
SelfSchedulingRunnable
setController
in interface SelfSchedulingRunnable
public void run()
run
in interface java.lang.Runnable
protected abstract void executeDelete() throws java.lang.Exception
java.lang.Exception