Interface SchedulerStateGateway

All Superinterfaces:
BaseGateway
All Known Implementing Classes:
DefaultSchedulerStateGateway, HanaSchedulerStateGateway, HsqldbSchedulerStateGateway, MsSqlSchedulerStateGateway, MySqlSchedulerStateGateway, OracleSchedulerStateGateway, PostgresSchedulerStateGateway

public interface SchedulerStateGateway extends BaseGateway
  • Method Details

    • insertSchedulerRow

      default boolean insertSchedulerRow(int version)
      The method will insert a row in auxliary scheduler table for current db time and given version
      Parameters:
      version - the version of the AuxTableTasksProvided used by this scheduler (value of AuxiliaryTablesBasedTaskProvider.VERSION
      Returns:
      true if row has been inserted, false otherwise
    • insertSchedulerRow

      @Deprecated(since="2105", forRemoval=true) boolean insertSchedulerRow(Instant now, int version)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 2105, use insertSchedulerRow(int) instead
      Parameters:
      now - this param is deprecated and will be ignored, see insertSchedulerRow(int)
    • updateSchedulerRow

      @Deprecated(since="2105", forRemoval=true) boolean updateSchedulerRow(Instant now, Instant oldTimestamp)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • updateSchedulerRow

      boolean updateSchedulerRow(Duration duration)
    • getSchedulerTimestamp

      Optional<SchedulerState> getSchedulerTimestamp()
    • deleteSchedulerRow

      default boolean deleteSchedulerRow()
      The method will remove a row in auxiliary scheduler table
      Returns:
      true if row has been removed, false otherwise