Class AbstractDLockFactory

    • Constructor Detail

      • AbstractDLockFactory

        public AbstractDLockFactory()
    • Method Detail

      • destroy

        public void destroy()
      • getLockNamePrefix

        public String getLockNamePrefix()
      • setLockNamePrefix

        public AbstractDLockFactory setLockNamePrefix​(String lockNamePrefix)
        Name of locks created by this factory will be prefixed by this string.
        Parameters:
        lockNamePrefix -
        Returns:
      • getLockPropertiesMap

        protected Map<String,​Properties> getLockPropertiesMap()
        Get all locks properties settings.
        Returns:
      • getLockProperties

        protected Properties getLockProperties​(String name)
        Get a lock's properties.
        Parameters:
        name -
        Returns:
      • createAndInitLockInstance

        protected AbstractDLock createAndInitLockInstance​(String name,
                                                          Properties lockProps)
        Create and initializes an IDLock instance, ready for use.
        Parameters:
        name -
        lockProps -
        Returns:
      • createLockInternal

        protected abstract AbstractDLock createLockInternal​(String name,
                                                            Properties lockProps)
        Create a new lock instance, but does not initialize it. Convenient method for sub-class to override.
        Parameters:
        name -
        lockProps -
        Returns: