public class ReentrantSimpleLock extends Object implements ISimpleLock
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.Constructor and Description |
---|
ReentrantSimpleLock() |
public boolean tryLock()
tryLock
in interface ISimpleLock
public void lock()
lock
in interface ISimpleLock
public void unlock()
unlock
in interface ISimpleLock
Copyright © GigaSpaces.