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, [email protected]
See Also:
  • Constructor Details

    • ClusteredLockConfiguration

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

    • isReentrant

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

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

      public String toString()
      Overrides:
      toString in class Object