Package com.avoka.fc.core.util
Class CayenneTimerTask
- java.lang.Object
-
- java.util.TimerTask
-
- com.avoka.fc.core.util.CayenneTimerTask
-
-
Constructor Summary
Constructors Constructor Description CayenneTimerTask(ServletContext servletContext, boolean clearDaoCaches)Create a Cayenne runnable task.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ServletContextgetServletContext()abstract voidperformTask()Execute the task business logic.voidrun()Perform the task.-
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
-
-
-
Constructor Detail
-
CayenneTimerTask
public CayenneTimerTask(ServletContext servletContext, boolean clearDaoCaches)
Create a Cayenne runnable task.- Parameters:
servletContext- the servlet contextclearDaoCaches- the clear DAO caches flag
-
-
Method Detail
-
performTask
public abstract void performTask()
Execute the task business logic.
-
run
public void run()
Perform the task.- Specified by:
runin interfaceRunnable- Specified by:
runin classTimerTask- See Also:
Runnable.run()
-
getServletContext
public ServletContext getServletContext()
- Returns:
- the servlet context
-
-