Class DataPruneMaintenanceTask

    • Constructor Detail

      • DataPruneMaintenanceTask

        public DataPruneMaintenanceTask​(GatewayContext context,
                                        int age,
                                        TimeUnits units)
    • Method Detail

      • getAgeMillis

        protected long getAgeMillis()
        Gets the age to delete in milliseconds.
      • getLogger

        public org.apache.log4j.Logger getLogger()
      • getNextExecDelayMillis

        public long getNextExecDelayMillis()
        SELF-SCHEDULING RUNNABLE CODE
        Specified by:
        getNextExecDelayMillis in interface SelfSchedulingRunnable
        Returns:
        Time to wait until next exec. 0 indicates that the unit should not be executed, and the engine should just wait for a reschedule request.
      • setController

        public void setController​(SchedulingController controller)
        Description copied from interface: SelfSchedulingRunnable
        Called by the execution engine, passes in a scheduling controller that the self scheduling runnable can use to request a reschedule.
        Specified by:
        setController in interface SelfSchedulingRunnable
        Parameters:
        controller - the scheduling controller which is to be used to request the reschuled run
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • executeDelete

        protected abstract void executeDelete()
                                       throws java.lang.Exception
        END SELF-SCHEDULING RUNNABLE CODE
        Throws:
        java.lang.Exception