Package org.infinispan.lock.api
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:
- 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 OwnershipLevel
getOwnershipLevel()
boolean
isReentrant()
String
toString()
-
-
-
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
OwnershipLevel
or this lock
-
toString
public String toString()
-
-