Package org.infinispan.lock.api
Class ClusteredLockConfiguration
java.lang.Object
org.infinispan.lock.api.ClusteredLockConfiguration
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 Summary
ConstructorsConstructorDescriptionDefault lock is non reentrant and the ownership level isOwnershipLevel.NODE
-
Method Summary
-
Constructor Details
-
ClusteredLockConfiguration
public ClusteredLockConfiguration()Default lock is non reentrant and the ownership level isOwnershipLevel.NODE
-
-
Method Details
-
isReentrant
public boolean isReentrant()- Returns:
- true if the lock is reentrant
-
getOwnershipLevel
- Returns:
- the
OwnershipLevel
or this lock
-
toString
-