Class ReentrantSimpleLock
java.lang.Object
com.gigaspaces.internal.utils.concurrent.ReentrantSimpleLock
- All Implemented Interfaces:
ISimpleLock
- Direct Known Subclasses:
XtnInfo
Reentrant implementation of
ISimpleLock The implementation intent is to save memory,
therefore the synchronization is done on the lock object it self, no user should synchronize on
the lock object it self as it may create deadlocks.- Since:
- 9.0.0
- Author:
- eitany
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ReentrantSimpleLock
public ReentrantSimpleLock()
-
-
Method Details
-
tryLock
public boolean tryLock()- Specified by:
tryLockin interfaceISimpleLock
-
lock
public void lock()- Specified by:
lockin interfaceISimpleLock
-
unlock
public void unlock()- Specified by:
unlockin interfaceISimpleLock
-