Class NamedLockProvider
java.lang.Object
org.openspaces.persistency.cassandra.NamedLockProvider
Provides a thread safe name based lock interface for getting a shared lock instance based on its
name.
- Since:
- 9.1.1
- Author:
- Dan Kilman
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NamedLockProvider
public NamedLockProvider()
-
-
Method Details
-
forName
- Parameters:
name- The name of the lock to get- Returns:
- The shared
ReentrantLockmatching the provided name. One is created if it doesn't already exist. Note that the returnedReentrantLockshould still be acquired and released by the client calling this method.
-