Class PostgreSqlJdbcCustomization
- java.lang.Object
-
- com.github.kagkarlsson.scheduler.jdbc.DefaultJdbcCustomization
-
- com.github.kagkarlsson.scheduler.jdbc.PostgreSqlJdbcCustomization
-
- All Implemented Interfaces:
JdbcCustomization
public class PostgreSqlJdbcCustomization extends DefaultJdbcCustomization
-
-
Field Summary
-
Fields inherited from class com.github.kagkarlsson.scheduler.jdbc.DefaultJdbcCustomization
UTC
-
-
Constructor Summary
Constructors Constructor Description PostgreSqlJdbcCustomization(boolean useGenericLockAndFetch, boolean persistTimestampInUTC)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcreateGenericSelectForUpdateQuery(String tableName, int limit, String requiredAndCondition, boolean orderByPriority)StringgetName()StringgetQueryLimitPart(int limit)List<Execution>lockAndFetchSingleStatement(JdbcTaskRepositoryContext ctx, Instant now, int limit, boolean orderByPriority)booleansupportsGenericLockAndFetch()booleansupportsSingleStatementLockAndFetch()-
Methods inherited from class com.github.kagkarlsson.scheduler.jdbc.DefaultJdbcCustomization
createSelectDueQuery, getInstant, getTaskData, setInstant, setTaskData, supportsExplicitQueryLimitPart
-
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceJdbcCustomization- Overrides:
getNamein classDefaultJdbcCustomization
-
getQueryLimitPart
public String getQueryLimitPart(int limit)
- Specified by:
getQueryLimitPartin interfaceJdbcCustomization- Overrides:
getQueryLimitPartin classDefaultJdbcCustomization
-
supportsSingleStatementLockAndFetch
public boolean supportsSingleStatementLockAndFetch()
- Specified by:
supportsSingleStatementLockAndFetchin interfaceJdbcCustomization- Overrides:
supportsSingleStatementLockAndFetchin classDefaultJdbcCustomization
-
supportsGenericLockAndFetch
public boolean supportsGenericLockAndFetch()
- Specified by:
supportsGenericLockAndFetchin interfaceJdbcCustomization- Overrides:
supportsGenericLockAndFetchin classDefaultJdbcCustomization
-
createGenericSelectForUpdateQuery
public String createGenericSelectForUpdateQuery(String tableName, int limit, String requiredAndCondition, boolean orderByPriority)
- Specified by:
createGenericSelectForUpdateQueryin interfaceJdbcCustomization- Overrides:
createGenericSelectForUpdateQueryin classDefaultJdbcCustomization
-
lockAndFetchSingleStatement
public List<Execution> lockAndFetchSingleStatement(JdbcTaskRepositoryContext ctx, Instant now, int limit, boolean orderByPriority)
- Specified by:
lockAndFetchSingleStatementin interfaceJdbcCustomization- Overrides:
lockAndFetchSingleStatementin classDefaultJdbcCustomization
-
-