Class GcsLockConfig.Builder

  • Enclosing class:
    GcsLockConfig

    public static final class GcsLockConfig.Builder
    extends Object
    • Method Detail

      • setGcsBucketName

        public GcsLockConfig.Builder setGcsBucketName​(String gcsBucketName)
        Parameters:
        gcsBucketName - : The GCS bucket name where the lock object is stored
        Returns:
      • setGcsLockFilename

        public GcsLockConfig.Builder setGcsLockFilename​(String gcsLockFilename)
        Parameters:
        gcsLockFilename - : The name of the lock object in the GCS bucket returned by GcsLockConfig#getGcsBucketName()
        Returns:
      • setRefreshIntervalInSeconds

        public GcsLockConfig.Builder setRefreshIntervalInSeconds​(Integer refreshIntervalInSeconds)
        Parameters:
        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.
        Returns:
      • setLifeExtensionInSeconds

        public GcsLockConfig.Builder setLifeExtensionInSeconds​(Integer iifeExtensionInSeconds)
        Parameters:
        iifeExtensionInSeconds - : The length in seconds the lock's expiration is extended by the lock owner.
        Returns: