Class CayenneTimerTask

java.lang.Object
java.util.TimerTask
com.avoka.fc.core.util.CayenneTimerTask
All Implemented Interfaces:
Runnable

public abstract class CayenneTimerTask extends TimerTask
Provide a runnable Cayenne timer task.
Since:
5.0.0
  • Constructor Details

    • CayenneTimerTask

      public CayenneTimerTask(ServletContext servletContext, boolean clearDaoCaches)
      Create a Cayenne runnable task.
      Parameters:
      servletContext - the servlet context
      clearDaoCaches - the clear DAO caches flag
  • Method Details

    • performTask

      public abstract void performTask()
      Execute the task business logic.
    • run

      public void run()
      Perform the task.
      Specified by:
      run in interface Runnable
      Specified by:
      run in class TimerTask
      See Also:
    • getServletContext

      public ServletContext getServletContext()
      Returns:
      the servlet context