Class CayenneTimerTask

  • All Implemented Interfaces:
    Runnable

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

      • CayenneTimerTask

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

      • performTask

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

        public ServletContext getServletContext()
        Returns:
        the servlet context