GigaSpaces XAP 10.0.1 API

org.openspaces.persistency.cassandra
Class NamedLockProvider

java.lang.Object
  extended by 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

Constructor Summary
NamedLockProvider()
           
 
Method Summary
 ReentrantLock forName(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedLockProvider

public NamedLockProvider()
Method Detail

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.

GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.