Package com.github.kagkarlsson.scheduler
Interface TaskRepository
-
- All Known Implementing Classes:
JdbcTaskRepository
public interface TaskRepository
-
-
Method Summary
-
-
-
Method Detail
-
createIfNotExists
boolean createIfNotExists(SchedulableInstance execution)
-
replace
Instant replace(Execution toBeReplaced, SchedulableInstance newInstance)
-
getScheduledExecutions
void getScheduledExecutions(ScheduledExecutionsFilter filter, Consumer<Execution> consumer)
-
getScheduledExecutions
void getScheduledExecutions(ScheduledExecutionsFilter filter, String taskName, Consumer<Execution> consumer)
-
remove
void remove(Execution execution)
-
reschedule
boolean reschedule(Execution execution, Instant nextExecutionTime, Instant lastSuccess, Instant lastFailure, int consecutiveFailures)
-
reschedule
boolean reschedule(Execution execution, Instant nextExecutionTime, Object newData, Instant lastSuccess, Instant lastFailure, int consecutiveFailures)
-
removeExecutions
int removeExecutions(String taskName)
-
checkSupportsLockAndFetch
void checkSupportsLockAndFetch()
-
-