Class GcsLockConfig
- java.lang.Object
-
- org.openbites.concurrent.locks.gcs.GcsLockConfig
-
public class GcsLockConfig extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGcsLockConfig.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetGcsBucketName()StringgetGcsLockFilename()IntegergetLifeExtensionInSeconds()IntegergetRefreshIntervalInSeconds()static GcsLockConfig.BuildernewBuilder()StringtoString()
-
-
-
Method Detail
-
newBuilder
public static GcsLockConfig.Builder newBuilder()
-
getGcsBucketName
public String getGcsBucketName()
- Returns:
- The GCS bucket name where the lock object is stored
-
getGcsLockFilename
public String getGcsLockFilename()
- Returns:
- The name of the lock object in the GCS bucket returned by getGcsBucketName()
-
getRefreshIntervalInSeconds
public Integer getRefreshIntervalInSeconds()
- Returns:
- 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.
-
getLifeExtensionInSeconds
public Integer getLifeExtensionInSeconds()
- Returns:
- The length in seconds the lock's expiration is extended by the lock owner.
-
-