Class NonReentrantSimpleLock
java.lang.Object
com.gigaspaces.internal.utils.concurrent.NonReentrantSimpleLock
- All Implemented Interfaces:
ISimpleLock
A non 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
-
NonReentrantSimpleLock
public NonReentrantSimpleLock()
-
-
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
-