Package com.github.kagkarlsson.scheduler
Interface TaskRepository
-
- All Known Implementing Classes:
JdbcTaskRepository
public interface TaskRepository
-
-
Method Summary
-
-
-
Method Detail
-
createIfNotExists
@Deprecated boolean createIfNotExists(SchedulableInstance<?> execution)
Deprecated.Prefer ScheduledTaskInstance which has a fixed execution-time
-
createIfNotExists
boolean createIfNotExists(ScheduledTaskInstance execution)
-
createBatch
void createBatch(List<ScheduledTaskInstance> executions)
-
replace
Instant replace(Execution toBeReplaced, ScheduledTaskInstance newInstance)
-
replace
@Deprecated Instant replace(Execution toBeReplaced, SchedulableInstance<?> newInstance)
Deprecated.Prefer ScheduledTaskInstance which has a fixed execution-time
-
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)
-
updateHeartbeatWithRetry
boolean updateHeartbeatWithRetry(Execution execution, Instant newHeartbeat, int tries)
-
getExecution
default Optional<Execution> getExecution(TaskInstanceId taskInstance)
-
removeExecutions
int removeExecutions(String taskName)
-
verifySupportsLockAndFetch
void verifySupportsLockAndFetch()
-
-