Class HazelcastGlobalLock

  • All Implemented Interfaces:
    pro.fessional.mirana.lock.GlobalLock

    
    public class HazelcastGlobalLock
     implements GlobalLock
                        
    Pessimistic Locking IMap.lock/unlock
    The lock will automatically be collected by the garbage collector when the lock is released and no other waiting conditions exist on the lock.
    
    FencedLock -
    Locks are not automatically removed. If a lock is not used anymore,
    Hazelcast does not automatically perform garbage collection in the lock.
    This can lead to an OutOfMemoryError.
    If you create locks on the fly, make sure they are destroyed.
    
    Since:

    2021-03-08

    Author:

    trydofor

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      HazelcastGlobalLock(HazelcastInstance hazelcastInstance)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Lock getLock(@NotNull() String name)
      • Methods inherited from class pro.fessional.mirana.lock.GlobalLock

        lock
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HazelcastGlobalLock

        HazelcastGlobalLock(HazelcastInstance hazelcastInstance)