Class GemfireLockRegistry

java.lang.Object
org.springframework.integration.gemfire.util.GemfireLockRegistry
All Implemented Interfaces:
LockRegistry

public class GemfireLockRegistry extends Object implements LockRegistry
Implementation of LockRegistry providing a distributed lock using Gemfire.
Since:
4.0
Author:
Artem Bilan
  • Field Details

  • Constructor Details

    • GemfireLockRegistry

      public GemfireLockRegistry(org.apache.geode.cache.Cache cache)
    • GemfireLockRegistry

      public GemfireLockRegistry(org.apache.geode.cache.Region<?,?> region)
  • Method Details

    • obtain

      public Lock obtain(Object lockKey)
      Description copied from interface: LockRegistry
      Obtains the lock associated with the parameter object.
      Specified by:
      obtain in interface LockRegistry
      Parameters:
      lockKey - The object with which the lock is associated.
      Returns:
      The associated lock.