Class JdbcTemplateLockProvider.Configuration.Builder
java.lang.Object
net.javacrumbs.shedlock.provider.sql.SqlConfiguration.SqlConfigurationBuilder<JdbcTemplateLockProvider.Configuration.Builder>
net.javacrumbs.shedlock.provider.jdbctemplate.JdbcTemplateLockProvider.Configuration.Builder
- Enclosing class:
JdbcTemplateLockProvider.Configuration
public static final class JdbcTemplateLockProvider.Configuration.Builder
extends net.javacrumbs.shedlock.provider.sql.SqlConfiguration.SqlConfigurationBuilder<JdbcTemplateLockProvider.Configuration.Builder>
-
Field Summary
Fields inherited from class net.javacrumbs.shedlock.provider.sql.SqlConfiguration.SqlConfigurationBuilder
columnNames, databaseProduct, dbUpperCase, lockedByValue, tableName, useDbTime -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Enforces UTC times.withIsolationLevel(int isolationLevel) Sets the isolation level for ShedLock.withJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate) withTimeZone(TimeZone timeZone) Deprecated, for removal: This API element is subject to removal in a future version.use forceUtcTimeZone()withTransactionManager(@Nullable org.springframework.transaction.PlatformTransactionManager transactionManager) Methods inherited from class net.javacrumbs.shedlock.provider.sql.SqlConfiguration.SqlConfigurationBuilder
getThis, usingDbTime, withColumnNames, withDatabaseProduct, withDbUpperCase, withLockedByValue, withTableName
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withJdbcTemplate
public JdbcTemplateLockProvider.Configuration.Builder withJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate) -
withTransactionManager
public JdbcTemplateLockProvider.Configuration.Builder withTransactionManager(@Nullable org.springframework.transaction.PlatformTransactionManager transactionManager) -
withTimeZone
@Deprecated(forRemoval=true) public JdbcTemplateLockProvider.Configuration.Builder withTimeZone(TimeZone timeZone) Deprecated, for removal: This API element is subject to removal in a future version.use forceUtcTimeZone() -
forceUtcTimeZone
Enforces UTC times. When the useDbTime() is not set, the timestamps are sent to the DB in the JVM default timezone. If your server is not in UTC and you are not using TIMEZONE WITH TIMESTAMP or an equivalent, the TZ information may be lost. For example in Postgres. -
withIsolationLevel
Sets the isolation level for ShedLock. SeeConnectionfor constant definitions. for constant definitions -
build
-