Interface SchedulerStateGateway
-
- All Superinterfaces:
BaseGateway
- All Known Implementing Classes:
DefaultSchedulerStateGateway,HanaSchedulerStateGateway,HsqldbSchedulerStateGateway,MsSqlSchedulerStateGateway,OracleSchedulerStateGateway,PostgresSchedulerStateGateway
public interface SchedulerStateGateway extends BaseGateway
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description java.util.Optional<SchedulerState>getSchedulerTimestamp()default booleaninsertSchedulerRow(int version)The method will insert a row in auxliary scheduler table for current db time and given versionbooleaninsertSchedulerRow(java.time.Instant now, int version)Deprecated, for removal: This API element is subject to removal in a future version.since 2105, useinsertSchedulerRow(int)insteadbooleanupdateSchedulerRow(java.time.Instant now, java.time.Instant oldTimestamp)-
Methods inherited from interface de.hybris.platform.task.impl.gateways.BaseGateway
createTable, doesTableExist, dropTable, getTableName
-
-
-
-
Method Detail
-
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 ofAuxiliaryTablesBasedTaskProvider.VERSION- Returns:
trueif row has been inserted,falseotherwise
-
insertSchedulerRow
@Deprecated(since="2105", forRemoval=true) boolean insertSchedulerRow(java.time.Instant now, int version)Deprecated, for removal: This API element is subject to removal in a future version.since 2105, useinsertSchedulerRow(int)instead- Parameters:
now- this param is deprecated and will be ignored, seeinsertSchedulerRow(int)
-
updateSchedulerRow
boolean updateSchedulerRow(java.time.Instant now, java.time.Instant oldTimestamp)
-
getSchedulerTimestamp
java.util.Optional<SchedulerState> getSchedulerTimestamp()
-
-