Package org.infinispan.lock.api
Class ClusteredLockConfiguration
- java.lang.Object
-
- org.infinispan.lock.api.ClusteredLockConfiguration
-
public class ClusteredLockConfiguration extends java.lang.ObjectA 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:
- Infinispan documentation
-
-
Constructor Summary
Constructors Constructor Description ClusteredLockConfiguration()Default lock is non reentrant and the ownership level isOwnershipLevel.NODE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OwnershipLevelgetOwnershipLevel()booleanisReentrant()java.lang.StringtoString()
-
-
-
Constructor Detail
-
ClusteredLockConfiguration
public ClusteredLockConfiguration()
Default lock is non reentrant and the ownership level isOwnershipLevel.NODE
-
-
Method Detail
-
isReentrant
public boolean isReentrant()
- Returns:
- true if the lock is reentrant
-
getOwnershipLevel
public OwnershipLevel getOwnershipLevel()
- Returns:
- the
OwnershipLevelor this lock
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-