Class ReleaseLockOptions


  • public class ReleaseLockOptions
    extends Object
    Provides options for releasing a lock when calling the releaseLock() method. This class contains the options that may be configured during the act of releasing a lock.
    Author:
    Sasha Slutsker
    • Method Detail

      • builder

        public static ReleaseLockOptions.ReleaseLockOptionsBuilder builder​(LockItem lockItem)
        Creates a builder for the ReleaseLockOptions object. The only required parameter is lockItem. The rest are defaulted, such as deleting the lock on release is set to true and best effort is set to false. The builder can be used to customize these parameters.
        Parameters:
        lockItem - The lock item to release.
        Returns:
        a builder of ReleaseLockOptions instances