public static final class GcsLockConfig.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
GcsLockConfig |
build() |
GcsLockConfig.Builder |
setGcsBucketName(String gcsBucketName) |
GcsLockConfig.Builder |
setGcsLockFilename(String gcsLockFilename) |
GcsLockConfig.Builder |
setLifeExtensionInSeconds(Integer iifeExtensionInSeconds) |
GcsLockConfig.Builder |
setRefreshIntervalInSeconds(Integer refreshIntervalInSeconds) |
public GcsLockConfig.Builder setGcsBucketName(String gcsBucketName)
gcsBucketName: - The GCS bucket name where the lock object is storedpublic GcsLockConfig.Builder setGcsLockFilename(String gcsLockFilename)
gcsLockFilename: - The name of the lock object in the GCS bucket returned by GcsLockConfig#getGcsBucketName()public GcsLockConfig.Builder setRefreshIntervalInSeconds(Integer refreshIntervalInSeconds)
refreshIntervalInSeconds: - The interval in seconds when the lock is refreshed by the lock owner or a cleanup is attempted by the other processes that couldn't obtain the lock.public GcsLockConfig.Builder setLifeExtensionInSeconds(Integer iifeExtensionInSeconds)
iifeExtensionInSeconds: - The length in seconds the lock's expiration is extended by the lock owner.public GcsLockConfig build()
Copyright © 2022. All rights reserved.