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 ServletContext
getServletContext()
abstract void
performTask()
Execute the task business logic.void
run()
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:
run
in interfaceRunnable
- Specified by:
run
in classTimerTask
- See Also:
Runnable.run()
-
getServletContext
public ServletContext getServletContext()
- Returns:
- the servlet context
-
-