Class LockRegionConfig

    • Constructor Detail

      • LockRegionConfig

        public LockRegionConfig()
        Constructs new instance.
      • LockRegionConfig

        public LockRegionConfig​(String name)
        Constructs new instance with the specified name.
        Parameters:
        name - Name (see setName(String)).
    • Method Detail

      • getName

        public String getName()
        Returns the lock region name (see setName(String)).
        Returns:
        Lock region name.
      • setName

        public void setName​(String name)
        Sets the lock region name. Can contain only alpha-numeric characters and non-repeatable dots/hyphens.

        This name can be used to obtain reference to LockRegion via LockService.region(String).

        Value of this parameter is mandatory and must be unique across all regions registered within the LockServiceFactory.

        Parameters:
        name - Region name (can contain only alpha-numeric characters and non-repeatable dots/hyphens).