org.openspaces.persistency.cassandra
Class NamedLockProvider
java.lang.Object
  
org.openspaces.persistency.cassandra.NamedLockProvider
public class NamedLockProvider
- extends Object
 
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
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
NamedLockProvider
public NamedLockProvider()
forName
public ReentrantLock forName(String name)
- Parameters:
 name - The name of the lock to get
- Returns:
 - The shared 
ReentrantLock matching the provided name.
 One is created if it doesn't already exist.
 Note that the returned ReentrantLock should still be aquired and released by the client
 calling this method. 
 
Copyright © GigaSpaces.