Package com.enonic.xp.scheduler

## Interface ScheduleCalendar

- All Superinterfaces:
    `Serializable`
  All Known Subinterfaces:
    `CronCalendar`, `OneTimeCalendar`

      @PublicApi
      public interface ScheduleCalendar
      extends Serializable

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Deprecated Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `ScheduleCalendarType` | `getType()` |
    `Optional<Duration>` | `nextExecution()` | Deprecated.
    `Optional<Instant>` | `nextExecution​(Instant instant)` |

- - ### Method Detail

    - #### nextExecution

          Optional<Instant> nextExecution​(Instant instant)

    - #### nextExecution

          @Deprecated
          Optional<Duration> nextExecution()

      Deprecated.

    - #### getType

          ScheduleCalendarType getType()