Package com.avoka.fc.core.util
Class CayenneTimerTask
java.lang.Object
java.util.TimerTask
com.avoka.fc.core.util.CayenneTimerTask
- All Implemented Interfaces:
Runnable
Provide a runnable Cayenne timer task.
- Since:
- 5.0.0
-
Constructor Summary
ConstructorDescriptionCayenneTimerTask
(jakarta.servlet.ServletContext servletContext, boolean clearDaoCaches) Create a Cayenne runnable task. -
Method Summary
Modifier and TypeMethodDescriptionjakarta.servlet.ServletContext
abstract void
Execute the task business logic.void
run()
Perform the task.Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
Constructor Details
-
CayenneTimerTask
public CayenneTimerTask(jakarta.servlet.ServletContext servletContext, boolean clearDaoCaches) Create a Cayenne runnable task.- Parameters:
servletContext
- the servlet contextclearDaoCaches
- the clear DAO caches flag
-
-
Method Details
-
performTask
public abstract void performTask()Execute the task business logic. -
run
public void run()Perform the task. -
getServletContext
public jakarta.servlet.ServletContext getServletContext()- Returns:
- the servlet context
-