diff --git a/db-scheduler/src/main/java/com/github/kagkarlsson/scheduler/SchedulerClient.java b/db-scheduler/src/main/java/com/github/kagkarlsson/scheduler/SchedulerClient.java index 8278ed6d..2d020574 100644 --- a/db-scheduler/src/main/java/com/github/kagkarlsson/scheduler/SchedulerClient.java +++ b/db-scheduler/src/main/java/com/github/kagkarlsson/scheduler/SchedulerClient.java @@ -46,10 +46,14 @@ public interface SchedulerClient { * @param executionTime Instant it should run * @see java.time.Instant * @see com.github.kagkarlsson.scheduler.task.TaskInstance + * @deprecated use {@link #scheduleIfNotExists(TaskInstance, Instant)} instead. */ @Deprecated void schedule(TaskInstance taskInstance, Instant executionTime); + /** + * @deprecated use {@link #scheduleIfNotExists(SchedulableInstance)} instead. + */ @Deprecated void schedule(SchedulableInstance schedulableInstance);