Class CayenneTask

  • All Implemented Interfaces:
    Runnable

    public abstract class CayenneTask
    extends Object
    implements Runnable
    Provide a runnable Cayenne task.
    Since:
    4.3.4
    • Constructor Detail

      • CayenneTask

        public CayenneTask​(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