Package com.github.kagkarlsson.scheduler
Interface TaskRepository
- All Known Implementing Classes:
JdbcTaskRepository
public interface TaskRepository
-
Method Summary
Modifier and TypeMethodDescriptionvoidbooleancreateIfNotExists(SchedulableInstance execution) getDeadExecutions(Instant olderThan) getExecution(String taskName, String taskInstanceId) getExecutionsFailingLongerThan(Duration interval) voidgetScheduledExecutions(ScheduledExecutionsFilter filter, String taskName, Consumer<Execution> consumer) voidgetScheduledExecutions(ScheduledExecutionsFilter filter, Consumer<Execution> consumer) lockAndGetDue(Instant now, int limit) voidintremoveExecutions(String taskName) replace(Execution toBeReplaced, SchedulableInstance newInstance) booleanreschedule(Execution execution, Instant nextExecutionTime, Object newData, Instant lastSuccess, Instant lastFailure, int consecutiveFailures) booleanreschedule(Execution execution, Instant nextExecutionTime, Instant lastSuccess, Instant lastFailure, int consecutiveFailures) voidupdateHeartbeat(Execution execution, Instant heartbeatTime)
-
Method Details
-
createIfNotExists
-
getDue
-
replace
-
getScheduledExecutions
-
getScheduledExecutions
void getScheduledExecutions(ScheduledExecutionsFilter filter, String taskName, Consumer<Execution> consumer) -
lockAndGetDue
-
remove
-
reschedule
-
reschedule
-
pick
-
getDeadExecutions
-
updateHeartbeat
-
getExecutionsFailingLongerThan
-
getExecution
-
removeExecutions
-
checkSupportsLockAndFetch
void checkSupportsLockAndFetch()
-