Class SpannerLockProvider.Configuration.Builder
java.lang.Object
net.javacrumbs.shedlock.provider.spanner.SpannerLockProvider.Configuration.Builder
- Enclosing class:
SpannerLockProvider.Configuration
Builder for
SpannerLockProvider.Configuration. It provides defaults for table configuration and hostname.
A default SpannerLockProvider.TableConfiguration and host name are used if not explicitly specified.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theSpannerLockProvider.Configurationwith the provided parameters.withDatabaseClient(com.google.cloud.spanner.DatabaseClient databaseClient) withHostName(String hostName) withTableConfiguration(SpannerLockProvider.TableConfiguration tableConfiguration)
-
Method Details
-
withDatabaseClient
public SpannerLockProvider.Configuration.Builder withDatabaseClient(com.google.cloud.spanner.DatabaseClient databaseClient) -
withHostName
-
withTableConfiguration
public SpannerLockProvider.Configuration.Builder withTableConfiguration(SpannerLockProvider.TableConfiguration tableConfiguration) -
build
Builds theSpannerLockProvider.Configurationwith the provided parameters. If the table configuration or hostname are not set, it will default to a pre-defined table configuration for ShedLock and the local hostname.- Returns:
- A new instance of
SpannerLockProvider.Configurationwith the set parameters.
-