Class SpannerLockProvider
java.lang.Object
net.javacrumbs.shedlock.support.StorageBasedLockProvider
net.javacrumbs.shedlock.provider.spanner.SpannerLockProvider
- All Implemented Interfaces:
net.javacrumbs.shedlock.core.ExtensibleLockProvider,net.javacrumbs.shedlock.core.LockProvider
public class SpannerLockProvider
extends net.javacrumbs.shedlock.support.StorageBasedLockProvider
A lock provider for Google Cloud Spanner.
This provider uses Spanner as the backend storage for the locks.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classConfiguration class forSpannerLockProvider.static final classClass representing the table configuration for the lock provider. -
Constructor Summary
ConstructorsConstructorDescriptionSpannerLockProvider(com.google.cloud.spanner.DatabaseClient databaseClient) Constructs a newSpannerLockProviderwith the providedDatabaseClient.SpannerLockProvider(SpannerLockProvider.Configuration configuration) Constructs a newSpannerLockProviderusing the specified configuration. -
Method Summary
Methods inherited from class net.javacrumbs.shedlock.support.StorageBasedLockProvider
clearCache, doLock, lock
-
Constructor Details
-
SpannerLockProvider
public SpannerLockProvider(com.google.cloud.spanner.DatabaseClient databaseClient) Constructs a newSpannerLockProviderwith the providedDatabaseClient.- Parameters:
databaseClient- the client for interacting with Google Cloud Spanner.
-
SpannerLockProvider
Constructs a newSpannerLockProviderusing the specified configuration.- Parameters:
configuration- configuration for the provider.
-