Class ClusteredLockConfiguration

java.lang.Object
org.infinispan.lock.api.ClusteredLockConfiguration

public class ClusteredLockConfiguration extends Object
A Clustered Lock can be reentrant and there are different ownership levels.

The only mode supported now is "non reentrant" locks for "nodes".

Since:
9.2
Author:
Katia Aresti, karesti@redhat.com
See Also:
  • Constructor Details Link icon

    • ClusteredLockConfiguration Link icon

      public ClusteredLockConfiguration()
      Default lock is non reentrant and the ownership level is OwnershipLevel.NODE
  • Method Details Link icon

    • isReentrant Link icon

      public boolean isReentrant()
      Returns:
      true if the lock is reentrant
    • getOwnershipLevel Link icon

      public OwnershipLevel getOwnershipLevel()
      Returns:
      the OwnershipLevel or this lock
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object